Enum combine::primitives::Info [] [src]

pub enum Info<T, R> {
    Token(T),
    Range(R),
    Owned(String),
    Borrowed(&'static str),
}

Enum holding error information. Variants are defined for Stream::Item and Stream::Range as well as string variants holding simple descriptions.

As there is implementations of From for T: Positioner, String and &'static str the constructor need not be used directly as calling msg.into() should turn a message into the correct Info variant.

Variants

Methods

impl<T, R> Info<T, R>
[src]

Trait Implementations

impl<T: Clone, R: Clone> Clone for Info<T, R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug, R: Debug> Debug for Info<T, R>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq, R: PartialEq> PartialEq for Info<T, R>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Display, R: Display> Display for Info<T, R>
[src]

Formats the value using the given formatter. Read more

impl<R> From<char> for Info<char, R>
[src]

Performs the conversion.

impl<T, R> From<String> for Info<T, R>
[src]

Performs the conversion.

impl<T, R> From<&'static str> for Info<T, R>
[src]

Performs the conversion.

Auto Trait Implementations

impl<T, R> Send for Info<T, R> where
    R: Send,
    T: Send

impl<T, R> Sync for Info<T, R> where
    R: Sync,
    T: Sync