Struct zero_v::Composite[][src]

pub struct Composite<A: NextNode> {
    pub head: A,
}
Expand description

A type representing a collection of zero or more objects.

Fields

head: A

Can be of any type implementing the NextNode trait. Typically this will be a node whose next field implements NextNode (representing a collection of one or more nested nodes) or the unit type (representing an empty composite).

Implementations

Generates a new Composite

Arguments

  • head - The first node in the data structure or the unit type.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.