[][src]Trait microkelvin::Compound

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

Trait for compound datastructures

Associated Types

type Leaf

The leaf type of the collection

type Annotation

The annotation type of the connection

Loading content...

Required methods

fn child(&self, ofs: usize) -> Child<'_, Self, S>

Returns a reference to a possible child at specified offset

fn child_mut(&mut self, ofs: usize) -> ChildMut<'_, Self, S>

Returns a mutable reference to a possible child at specified offset

Loading content...

Provided methods

fn child_iter(&self) -> ChildIterator<'_, Self, S>

Returns an iterator over all the available offsets for this compound

Loading content...

Implementors

Loading content...