Enum pfmt::SingleFmtError [−][src]
pub enum SingleFmtError { UnknownFlag(char), UnknownOption(String), InvalidOptionValue(String, String), NamespaceOnlyFmt(String), UnknownSubfmt(String), }
Errors that happen in individual Fmt
s.
Variants
UnknownFlag(char)
Returned if a Fmt
receives a flag it doesn't know how to handle.
It's not actually used by the impl
s for the standard types, but you
can use it if you wish to be strict. Contains the erroneous flag.
UnknownOption(String)
Returned if a Fmt
receives an option it doesn't know how to handle.
Again, standard types do not do this, they are not strict. Contains the
erroneous option.
InvalidOptionValue(String, String)
Returned when a given option (stored in the first field) contains an invalid value (stored in the second field). Standard types do use this. Contains a pair of erroneous option's name and value.
NamespaceOnlyFmt(String)
Returned when a Fmt
that is only used as a container to hold/produce
other Fmt
s via the dot access syntax is used directly. Contains the
full path to the format unit used in such fashion.
UnknownSubfmt(String)
Returned when a Fmt
does not contain a requested sub-Fmt
. Contains
the full path to the child format unit.
Trait Implementations
impl Debug for SingleFmtError
[src]
impl Debug for SingleFmtError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for SingleFmtError
[src]
impl PartialEq for SingleFmtError
fn eq(&self, other: &SingleFmtError) -> bool
[src]
fn eq(&self, other: &SingleFmtError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SingleFmtError) -> bool
[src]
fn ne(&self, other: &SingleFmtError) -> bool
This method tests for !=
.
impl From<SingleFmtError> for FormattingError
[src]
impl From<SingleFmtError> for FormattingError
fn from(err: SingleFmtError) -> Self
[src]
fn from(err: SingleFmtError) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for SingleFmtError
impl Send for SingleFmtError
impl Sync for SingleFmtError
impl Sync for SingleFmtError