Enum pfmt::FormattingError[][src]

pub enum FormattingError {
    EmptyName(String),
    UnterminatedArgumentList(String),
    UnterminatedPlaceholder(String),
    UnknownFlag(char),
    UnknownOption(String),
    InvalidOptionValue(StringString),
    UnknownFmt(String),
}

Any error that can happen during formatting.

Variants

Returned if a placeholder has an empty name. Contains the erroneous input.

Retuned if an argument list is not closed off with a bracket. Contains the erroneous input.

Returned if a placeholder is not terminated. Contains the erroneous input.

A SingleFmtError::UnknownFlag is propagated as this.

A SingleFmtError::UnknownOption is propagated as this.

A SingleFmtError::InvalidOptionValue is propagated as this.

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]

Formats the value using the given formatter. Read more

impl PartialEq for FormattingError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<SingleFmtError> for FormattingError
[src]

Performs the conversion.

Auto Trait Implementations