Enum pfmt::SingleFmtError[][src]

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

Errors that happen in individual Fmts.

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. Contains the erroneous flag.

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.

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.

Returned when a Fmt that is only used as a container to hold/produce other Fmts via the dot access syntax is used directly. Contains the full path to the format unit used in such fashion.

Returned when a Fmtdoes not contain a requested sub-Fmt. Contains the full path to the child format unit.

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