pub struct Cons<Head, Tail> {
pub head: Head,
pub tail: Tail,
}Expand description
non-empty tuple, containing the first element and the rest of the elements as a variadic tuple.
Fields§
§head: Headfirst element.
tail: Tailvariadic tuple of the remaining elements.
Trait Implementations§
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: PartialOrd, Tail: PartialOrd> PartialOrd for Cons<Head, Tail>
impl<Head: PartialOrd, Tail: PartialOrd> PartialOrd for Cons<Head, Tail>
Source§impl<T: Arg, Head: Register<T>, Tail: RegisterMany<T>> RegisterMany<T> for Cons<Head, Tail>
impl<T: Arg, Head: Register<T>, Tail: RegisterMany<T>> RegisterMany<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
Source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
Source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
Source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
Source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
Source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
Source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.