Skip to main content

Split

Trait Split 

Source
pub trait Split<T: HList, N>: HList + Sized {
    type Remainder;

    // Required method
    fn split(self) -> (T, Self::Remainder);
}

Required Associated Types§

Required Methods§

Source

fn split(self) -> (T, Self::Remainder)

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.

Implementors§

Source§

impl<T, U, R: HList, S: HList, N, M> Split<Cons<U, S>, Cons<PhantomData<N>, M>> for Cons<T, R>
where Self: Access<U, N>, <Self as Access<U, N>>::Remainder: Split<S, M>,

Source§

type Remainder = <<Cons<T, R> as Access<U, N>>::Remainder as Split<S, M>>::Remainder

Source§

impl<T: HList> Split<Nil, Nil> for T