TuplePopFront

Trait TuplePopFront 

pub trait TuplePopFront: Tuple {
    type Front;
    type Rest: TuplePushFront<Self::Front, Pushed = Self>;

    // Required method
    fn pop_front(self) -> (Self::Front, Self::Rest);
}
Available on crate features tuple and tuple-ops only.

Required Associated Types§

type Front

type Rest: TuplePushFront<Self::Front, Pushed = Self>

Required Methods§

fn pop_front(self) -> (Self::Front, Self::Rest)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl<P> TuplePopFront for (P₁, P₂, …, Pₙ)

This trait is implemented for tuples up to 21 items long

§

type Front = P

§

type Rest = ()

§

fn pop_front(self) -> (P, Self::Rest)

Implementors§