Trait microkelvin::Compound[][src]

pub trait Compound<A>: Sized + Canon {
    type Leaf;
    fn child(&self, ofs: usize) -> Child<'_, Self, A>
    where
        A: Annotation<Self::Leaf>
;
fn child_mut(&mut self, ofs: usize) -> ChildMut<'_, Self, A>
    where
        A: Annotation<Self::Leaf>
; fn children(&self) -> ChildIterator<'_, Self, A> { ... } }

A type that can recursively contain itself and leaves.

Associated Types

type Leaf[src]

The leaf type of the Compound collection

Loading content...

Required methods

fn child(&self, ofs: usize) -> Child<'_, Self, A> where
    A: Annotation<Self::Leaf>, 
[src]

Returns a reference to a possible child at specified offset

fn child_mut(&mut self, ofs: usize) -> ChildMut<'_, Self, A> where
    A: Annotation<Self::Leaf>, 
[src]

Returns a mutable reference to a possible child at specified offset

Loading content...

Provided methods

fn children(&self) -> ChildIterator<'_, Self, A>[src]

Returns an iterator over the children of the Compound node.

Loading content...

Implementors

Loading content...