pub enum Child<'a, C, A>where
    C: Compound<A>,
{ Leaf(&'a C::Leaf), Node(&'a Annotated<Box<C>, A>), Empty, EndOfNode, }
Expand description

The response of the child method on a Compound node.

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Compute the annotation from the child.
Compute the annotation from the child.
Compute the annotation from the child.
Compute the annotation from the child.
Compute the annotation from the child.
Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.