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§
Trait Implementations§
impl<A: NextNode> StructuralPartialEq for Composite<A>
Auto Trait Implementations§
impl<A> Freeze for Composite<A>where
A: Freeze,
impl<A> RefUnwindSafe for Composite<A>where
A: RefUnwindSafe,
impl<A> Send for Composite<A>where
A: Send,
impl<A> Sync for Composite<A>where
A: Sync,
impl<A> Unpin for Composite<A>where
A: Unpin,
impl<A> UnwindSafe for Composite<A>where
A: UnwindSafe,
Blanket Implementations§
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