TuplePushFront

Trait TuplePushFront 

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

    // Required method
    fn push_front(self, value: T) -> Self::Pushed;
}
Available on crate features tuple and tuple-ops only.

Required Associated Types§

type Pushed: TuplePopFront<Front = T, Rest = Self>

Required Methods§

fn push_front(self, value: T) -> Self::Pushed

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<T, P> TuplePushFront<P> for (T₁, T₂, …, Tₙ)

This trait is implemented for tuples up to 20 items long

§

type Pushed = (P, T)

§

fn push_front(self, value: P) -> Self::Pushed

Implementors§