pub enum Tree<A> {
Empty,
Cons(Rc<Self>, A, Rc<Self>),
}
Variants§
Implementations§
Trait Implementations§
Source§impl<A: PartialOrd> PartialOrd for Tree<A>
impl<A: PartialOrd> PartialOrd for Tree<A>
impl<A> StructuralPartialEq for Tree<A>
Auto Trait Implementations§
impl<A> Freeze for Tree<A>where
A: Freeze,
impl<A> RefUnwindSafe for Tree<A>where
A: RefUnwindSafe,
impl<A> !Send for Tree<A>
impl<A> !Sync for Tree<A>
impl<A> Unpin for Tree<A>where
A: Unpin,
impl<A> UnwindSafe for Tree<A>where
A: UnwindSafe + RefUnwindSafe,
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