[][src]Trait combine::error::ErrorInfo

pub trait ErrorInfo<'s, T, R> {
    type Format: Display;
    fn into_info(&'s self) -> Info<T, R, Self::Format>;
}

Trait for types which can be used to construct error information.

To call functions expecting this trait, use the wrapper types defined in this module Token, Range, Format or Static/&'static str

Associated Types

Loading content...

Required methods

fn into_info(&'s self) -> Info<T, R, Self::Format>

Loading content...

Implementations on Foreign Types

impl<'s, 'a, T, R, F> ErrorInfo<'s, T, R> for &'a F where
    F: ErrorInfo<'s, T, R>, 
[src]

type Format = F::Format

impl<'s, R> ErrorInfo<'s, char, R> for char[src]

type Format = &'static str

impl<'s, T, R> ErrorInfo<'s, T, R> for &'static str[src]

type Format = &'static str

impl<R, '_> ErrorInfo<'_, u8, R> for u8[src]

type Format = &'static str

Loading content...

Implementors

impl<'s, T, R> ErrorInfo<'s, T, R> for Range<R> where
    R: Clone
[src]

type Format = &'static str

impl<'s, T, R> ErrorInfo<'s, T, R> for Static[src]

type Format = &'static str

impl<'s, T, R> ErrorInfo<'s, T, R> for Token<T> where
    T: Clone
[src]

type Format = &'static str

impl<'s, T, R, F> ErrorInfo<'s, T, R> for Info<T, R, F> where
    T: Clone,
    R: Clone,
    F: Display + 's, 
[src]

type Format = &'s F

impl<'s, T, R, F> ErrorInfo<'s, T, R> for Format<F> where
    F: Display + 's, 
[src]

type Format = &'s F

Loading content...