pub enum Child<'a, C, A>where
C: Compound<A>,{
Leaf(&'a C::Leaf),
Node(&'a Annotated<Box<C>, A>),
Empty,
EndOfNode,
}Variants§
Leaf(&'a C::Leaf)
Child is a leaf
Node(&'a Annotated<Box<C>, A>)
Child is an annotated subtree node
Empty
Empty slot
EndOfNode
No more children
Trait Implementations§
Auto Trait Implementations§
impl<'a, C, A> Freeze for Child<'a, C, A>
impl<'a, C, A> !RefUnwindSafe for Child<'a, C, A>
impl<'a, C, A> !Send for Child<'a, C, A>
impl<'a, C, A> !Sync for Child<'a, C, A>
impl<'a, C, A> Unpin for Child<'a, C, A>
impl<'a, C, A> !UnwindSafe for Child<'a, C, A>
Blanket Implementations§
Source§impl<'a, C, A> Annotation<&'a C> for Awhere
A: Annotation<C>,
impl<'a, C, A> Annotation<&'a C> for Awhere
A: Annotation<C>,
Source§fn from_child(t: &&'a C) -> A
fn from_child(t: &&'a C) -> A
Compute the annotation from the child.
Source§impl<'a, C, A> Annotation<&'a mut C> for Awhere
A: Annotation<C>,
impl<'a, C, A> Annotation<&'a mut C> for Awhere
A: Annotation<C>,
Source§fn from_child(t: &&'a mut C) -> A
fn from_child(t: &&'a mut C) -> A
Compute the annotation from the child.
Source§impl<C, A> Annotation<Arc<C>> for Awhere
A: Annotation<C>,
impl<C, A> Annotation<Arc<C>> for Awhere
A: Annotation<C>,
Source§fn from_child(t: &Arc<C>) -> A
fn from_child(t: &Arc<C>) -> A
Compute the annotation from the child.
Source§impl<C, A> Annotation<Box<C>> for Awhere
A: Annotation<C>,
impl<C, A> Annotation<Box<C>> for Awhere
A: Annotation<C>,
Source§fn from_child(t: &Box<C>) -> A
fn from_child(t: &Box<C>) -> A
Compute the annotation from the child.
Source§impl<C, A> Annotation<Rc<C>> for Awhere
A: Annotation<C>,
impl<C, A> Annotation<Rc<C>> for Awhere
A: Annotation<C>,
Source§fn from_child(t: &Rc<C>) -> A
fn from_child(t: &Rc<C>) -> A
Compute the annotation from the child.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more