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
Loading content...Required methods
fn child(&self, ofs: usize) -> Child<'_, Self, A> where
A: Annotation<Self::Leaf>,
[src]
A: Annotation<Self::Leaf>,
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]
A: Annotation<Self::Leaf>,
Returns a mutable reference to a possible child at specified offset
Provided methods
fn children(&self) -> ChildIterator<'_, Self, A>
[src]
Returns an iterator over the children of the Compound node.