pub enum List<T> {
Cons(T, Box<List<T>>),
Nil,
}Expand description
An enum that represents a Cons list.
See the module level documentation for more.
Variants§
Implementations§
Trait Implementations§
source§impl<T: Clone> IntoIterator for List<T>
impl<T: Clone> IntoIterator for List<T>
source§impl<T: PartialEq> PartialEq<List<T>> for List<T>
impl<T: PartialEq> PartialEq<List<T>> for List<T>
impl<T: Eq> Eq for List<T>
impl<T> StructuralEq for List<T>
impl<T> StructuralPartialEq for List<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for List<T>where T: RefUnwindSafe,
impl<T> Send for List<T>where T: Send,
impl<T> Sync for List<T>where T: Sync,
impl<T> Unpin for List<T>where T: Unpin,
impl<T> UnwindSafe for List<T>where T: 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