Enum pfmt::SingleFmtError[][src]

pub enum SingleFmtError {
    UnknownFlag(char),
    UnknownOption(String),
    InvalidOptionValue(StringString),
}

Errors that happen in individual formattables.

Variants

Returned if a Fmt receives a flag it doesn't know how to handle. It's not actually used by the impls for the standard types, but you can use it if you wish to be strict.

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.

Returned when a given option (stored in the first field) contains an invalid value (stored in the second field). Standard types do use this.

Trait Implementations

impl Debug for SingleFmtError
[src]

Formats the value using the given formatter. Read more

impl PartialEq for SingleFmtError
[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