pub trait DepKind: Copy + Debug + Eq + Hash + Send + Encodable<FileEncoder> + 'static {
    const NULL: Self;
    const RED: Self;
    const MAX: u16;

    // Required methods
    fn debug_node(node: &DepNode<Self>, f: &mut Formatter<'_>) -> Result;
    fn with_deps<OP, R>(deps: TaskDepsRef<'_, Self>, op: OP) -> R
       where OP: FnOnce() -> R;
    fn read_deps<OP>(op: OP)
       where OP: for<'a> FnOnce(TaskDepsRef<'a, Self>);
    fn from_u16(u: u16) -> Self;
    fn to_u16(self) -> u16;
}
Expand description

Describe the different families of dependency nodes.

Required Associated Constants§

source

const NULL: Self

DepKind to use when incr. comp. is turned off.

source

const RED: Self

DepKind to use to create the initial forever-red node.

source

const MAX: u16

Required Methods§

source

fn debug_node(node: &DepNode<Self>, f: &mut Formatter<'_>) -> Result

Implementation of std::fmt::Debug for DepNode.

source

fn with_deps<OP, R>(deps: TaskDepsRef<'_, Self>, op: OP) -> Rwhere OP: FnOnce() -> R,

Execute the operation with provided dependencies.

source

fn read_deps<OP>(op: OP)where OP: for<'a> FnOnce(TaskDepsRef<'a, Self>),

Access dependencies from current implicit context.

source

fn from_u16(u: u16) -> Self

source

fn to_u16(self) -> u16

Implementors§