pub struct Cons<Tail, Head>where
Tail: CTCons,{ /* private fields */ }Expand description
Actual type used to carry cons list information.
This type is useful to create a new cons list in a compact syntax, like the example within the module documentation. Other than for creating new cons lists this structure isn’t useful.
Trait Implementations§
Source§impl<X, Tail, Head> CTAppend<X> for Cons<Tail, Head>where
X: 'static,
Tail: CTCons + 'static,
Head: 'static,
impl<X, Tail, Head> CTAppend<X> for Cons<Tail, Head>where
X: 'static,
Tail: CTCons + 'static,
Head: 'static,
Source§impl<Target, Tail, Head> CTOffset<Target> for Cons<Tail, Head>
impl<Target, Tail, Head> CTOffset<Target> for Cons<Tail, Head>
Auto Trait Implementations§
impl<Tail, Head> Freeze for Cons<Tail, Head>
impl<Tail, Head> RefUnwindSafe for Cons<Tail, Head>where
Tail: RefUnwindSafe,
Head: RefUnwindSafe,
impl<Tail, Head> Send for Cons<Tail, Head>
impl<Tail, Head> Sync for Cons<Tail, Head>
impl<Tail, Head> Unpin for Cons<Tail, Head>
impl<Tail, Head> UnwindSafe for Cons<Tail, Head>where
Tail: UnwindSafe,
Head: 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