[][src]Trait combinedfun::traits::Tag

pub trait Tag<I> {
    type Output;
    fn parse_tag(&self, inp: I) -> Option<(Self::Output, I)>;
}

Implemented for types that can be tags of the input I.

Associated Types

type Output

Loading content...

Required methods

fn parse_tag(&self, inp: I) -> Option<(Self::Output, I)>

The return type is reversed, since the tag is the beginning of the input.

Loading content...

Implementations on Foreign Types

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

type Output = &'a str

impl<'a, T> Tag<&'a [T]> for [T] where
    T: PartialEq
[src]

impl<'a> Tag<&'a [u8]> for str[src]

Loading content...

Implementors

impl<I: Clone, P: Position<I>, T: Tag<I> + ?Sized> Tag<Span<I, P>> for T[src]

type Output = <T as Tag<I>>::Output

Loading content...