Enum runtime_fmt::Error [] [src]

pub enum Error<'a> {
    BadSyntax(Vec<(String, Option<String>)>),
    BadIndex(usize),
    BadName(&'a str),
    NoSuchFormat(&'a str),
    UnsatisfiedFormat {
        idx: usize,
        must_implement: &'static str,
    },
    BadCount(usize),
    Io(Error),
    Fmt(Error),
}

An error during parsing or formatting.

Variants

Invalid format string syntax.

A format specifier referred to an out-of-range index.

A format specifier referred to a non-existent name.

A format specifier referred to a non-existent type.

A format specifier's type was not satisfied by its argument.

Fields of UnsatisfiedFormat

A parameter was of a type not suitable for use as a count.

An I/O error from an rt_write! or rt_writeln! call.

A formatting error from an rt_write! or rt_writeln! call.

Trait Implementations

impl<'a> Debug for Error<'a>
[src]

Formats the value using the given formatter.

impl<'a> From<Error> for Error<'a>
[src]

Performs the conversion.

impl<'a> From<Error> for Error<'a>
[src]

Performs the conversion.

impl<'a> Error for Error<'a>
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl<'a> Display for Error<'a>
[src]

Formats the value using the given formatter. Read more