Enum pfmt::FormattingError [−][src]
pub enum FormattingError { EmptyName(String), UnterminatedArgumentList(String), UnterminatedPlaceholder(String), UnknownFlag(char), UnknownOption(String), InvalidOptionValue(String, String), UnknownFmt(String), }
Any error that can happen during formatting.
Variants
EmptyName(String)
Returned if a placeholder has an empty name. Contains the erroneous input.
UnterminatedArgumentList(String)
Retuned if an argument list is not closed off with a bracket. Contains the erroneous input.
UnterminatedPlaceholder(String)
Returned if a placeholder is not terminated. Contains the erroneous input.
UnknownFlag(char)
A SingleFmtError::UnknownFlag
is propagated as this.
UnknownOption(String)
A SingleFmtError::UnknownOption
is propagated as this.
InvalidOptionValue(String, String)
A SingleFmtError::InvalidOptionValue
is propagated as this.
UnknownFmt(String)
Returned if the table could neither find nor produce a Fmt
with the
given name (contained as the only field).
Trait Implementations
impl Debug for FormattingError
[src]
impl Debug for FormattingError
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 FormattingError
[src]
impl PartialEq for FormattingError
fn eq(&self, other: &FormattingError) -> bool
[src]
fn eq(&self, other: &FormattingError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FormattingError) -> bool
[src]
fn ne(&self, other: &FormattingError) -> 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 FormattingError
impl Send for FormattingError
impl Sync for FormattingError
impl Sync for FormattingError