pub struct Cons<Head, Tail> {
pub head: Head,
pub tail: Tail,
}Fields§
§head: Head§tail: TailTrait Implementations§
source§impl<Head: Debug, Tail: DebugList> DebugList for Cons<Head, Tail>
impl<Head: Debug, Tail: DebugList> DebugList for Cons<Head, Tail>
fn push_debug(this: &Self, debug: &mut DebugList<'_, '_>)
source§impl<Head: Ord, Tail: Ord> Ord for Cons<Head, Tail>
impl<Head: Ord, Tail: Ord> Ord for Cons<Head, Tail>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<Head: PartialEq, Tail: PartialEq> PartialEq for Cons<Head, Tail>
impl<Head: PartialEq, Tail: PartialEq> PartialEq for Cons<Head, Tail>
source§impl<Head: PartialOrd, Tail: PartialOrd> PartialOrd for Cons<Head, Tail>
impl<Head: PartialOrd, Tail: PartialOrd> PartialOrd for Cons<Head, Tail>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<T: Arg, Head: 'static + FnMut(Bencher<'_>, T), Tail: Register<T>> Register<T> for Cons<Head, Tail>
impl<T: Arg, Head: 'static + FnMut(Bencher<'_>, T), Tail: Register<T>> Register<T> for Cons<Head, Tail>
impl<Head: Copy, Tail: Copy> Copy for Cons<Head, Tail>
impl<Head: Eq, Tail: Eq> Eq for Cons<Head, Tail>
impl<Head, Tail> StructuralPartialEq for Cons<Head, Tail>
Auto Trait Implementations§
impl<Head, Tail> Freeze for Cons<Head, Tail>
impl<Head, Tail> RefUnwindSafe for Cons<Head, Tail>where
Head: RefUnwindSafe,
Tail: RefUnwindSafe,
impl<Head, Tail> Send for Cons<Head, Tail>
impl<Head, Tail> Sync for Cons<Head, Tail>
impl<Head, Tail> Unpin for Cons<Head, Tail>
impl<Head, Tail> UnwindSafe for Cons<Head, Tail>where
Head: UnwindSafe,
Tail: 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