[][src]Trait flatk::SplitFirst

pub trait SplitFirst where
    Self: Sized
{ type First; fn split_first(self) -> Option<(Self::First, Self)>; }

Split out the first element of a collection.

Associated Types

type First

Loading content...

Required methods

fn split_first(self) -> Option<(Self::First, Self)>

Loading content...

Implementations on Foreign Types

impl<'a, T> SplitFirst for &'a [T][src]

type First = &'a T

impl<'a, T> SplitFirst for &'a mut [T][src]

type First = &'a mut T

impl<S, T> SplitFirst for (S, T) where
    S: SplitFirst,
    T: SplitFirst
[src]

type First = (S::First, T::First)

Loading content...

Implementors

impl<S, I> SplitFirst for Subset<S, I> where
    I: SplitFirst + AsRef<[usize]>,
    <I as SplitFirst>::First: Borrow<usize>,
    S: Set + SplitAt + SplitFirst
[src]

This impl enables Subsets of Subsets

type First = S::First

fn split_first(self) -> Option<(Self::First, Self)>[src]

Split the first element of this subset.

impl<S, O> SplitFirst for Chunked<S, O> where
    S: Viewed + Set + SplitAt,
    O: Set + SplitOffsetsAt
[src]

type First = S

impl<S: SplitPrefix<N> + Set, N: Copy> SplitFirst for UniChunked<S, U<N>>[src]

type First = S::Prefix

Loading content...