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
BadSyntax(Vec<(String, Option<String>)>)
Invalid format string syntax.
BadIndex(usize)
A format specifier referred to an out-of-range index.
BadName(&'a str)
A format specifier referred to a non-existent name.
NoSuchFormat(&'a str)
A format specifier referred to a non-existent type.
UnsatisfiedFormat
A format specifier's type was not satisfied by its argument.
Fields of UnsatisfiedFormat
idx: usize | |
must_implement: &'static str |
BadCount(usize)
A parameter was of a type not suitable for use as a count.
Io(Error)
An I/O error from an rt_write!
or rt_writeln!
call.
Fmt(Error)
A formatting error from an rt_write!
or rt_writeln!
call.
Trait Implementations
impl<'a> Debug for Error<'a>
[src]
impl<'a> From<Error> for Error<'a>
[src]
impl<'a> From<Error> for Error<'a>
[src]
impl<'a> Error for Error<'a>
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more