combine::error

Trait ErrorInfo

source
pub trait ErrorInfo<'s, T, R> {
    type Format: Display;

    // Required method
    fn into_info(&'s self) -> Info<T, R, Self::Format>;
}
Expand description

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

Required Associated Types§

Required Methods§

source

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

Implementations on Foreign Types§

source§

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

source§

type Format = <F as ErrorInfo<'s, T, R>>::Format

source§

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

source§

impl<'s, R> ErrorInfo<'s, char, R> for char

source§

type Format = &'static str

source§

fn into_info(&self) -> Info<char, R, Self::Format>

source§

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

source§

type Format = &'static str

source§

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

source§

impl<R> ErrorInfo<'_, u8, R> for u8

source§

type Format = &'static str

source§

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

Implementors§

source§

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

source§

type Format = &'static str

source§

impl<'s, T, R> ErrorInfo<'s, T, R> for Static

source§

type Format = &'static str

source§

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

source§

type Format = &'static str

source§

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

source§

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