[][src]Enum runtime_fmt::Error

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> From<Error> for Error<'a>
[src]

Performs the conversion.

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

Performs the conversion.

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

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter. Read more

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

This method is soft-deprecated. Read more

Deprecating in 1.33.0

: replaced by Error::source, which can support downcasting

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

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

Auto Trait Implementations

impl<'a> Send for Error<'a>

impl<'a> Sync for Error<'a>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

Converts the given value to a String. Read more

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.