Struct combine::parser::combinator::FromStr[][src]

pub struct FromStr<O, P> where
    <P::Input as StreamOnce>::Error: ParseError<<P::Input as StreamOnce>::Item, <P::Input as StreamOnce>::Range, <P::Input as StreamOnce>::Position>,
    P: Parser,
    P::Output: StrLike,
    O: FromStr,
    O::Err: Display
{ pub parser: P, // some fields omitted }

Fields

parser: P

Trait Implementations

impl<O, P> Parser for FromStr<O, P> where
    <P::Input as StreamOnce>::Error: ParseError<<P::Input as StreamOnce>::Item, <P::Input as StreamOnce>::Range, <P::Input as StreamOnce>::Position>,
    P: Parser,
    P::Output: StrLike,
    O: FromStr,
    O::Err: Display
[src]

type Input = P::Input

The type which is taken as input for the parser. The type must implement the Stream trait which allows the parser to read items from the type. Read more

type Output = O

The type which is returned if the parser is successful.

type PartialState = P::PartialState

Determines the state necessary to resume parsing after more input is supplied. Read more

Auto Trait Implementations

impl<O, P> RefUnwindSafe for FromStr<O, P> where
    P: RefUnwindSafe

impl<O, P> Send for FromStr<O, P> where
    P: Send

impl<O, P> Sync for FromStr<O, P> where
    P: Sync

impl<O, P> Unpin for FromStr<O, P> where
    P: Unpin

impl<O, P> UnwindSafe for FromStr<O, P> where
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.