CollectInitialiser

Trait CollectInitialiser 

Source
pub trait CollectInitialiser<const FORWARD: bool, const SKIP_DISABLED: bool, const ID: u8>: Initialiser<FORWARD, ID> {
    // Required method
    fn collect<'n, T: Iterator<Item = &'n Node>>(
        &mut self,
        _node: &Node,
        from_all: impl Fn() -> T,
    ) -> Self::Value;
}
Expand description

Initialiser where values are transferred from the neighbors to the current node.

Required Methods§

Source

fn collect<'n, T: Iterator<Item = &'n Node>>( &mut self, _node: &Node, from_all: impl Fn() -> T, ) -> Self::Value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<C: DepthInitialiser<FORWARD>, const FORWARD: bool> CollectInitialiser<FORWARD, true, 1> for C

Source§

impl<const FORWARD: bool> CollectInitialiser<FORWARD, false, 3> for ProofInitialiser<FORWARD>