[][src]Trait combinedfun::traits::SplitFirst

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

This trait allows removing the first element from the input.

Associated Types

type Element

Loading content...

Required methods

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

Loading content...

Implementations on Foreign Types

impl<'a> SplitFirst for &'a str[src]

type Element = char

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

Loading content...

Implementors

impl<I: Clone + SplitFirst, P: Position<I>> SplitFirst for Span<I, P>[src]

type Element = I::Element

Loading content...