Enum ketos::string_fmt::FormatError [] [src]

pub enum FormatError {
    Error(Box<str>),
    ExtraFields,
    FieldOverflow,
    FieldTypeError {
        expected: &'static str,
        found: &'static str,
    },
    IncompleteDirective,
    IncorrectCloseDelim(char),
    IncorrectFlags,
    InfiniteLoop,
    InsufficientArguments,
    IntegerOverflow,
    InvalidFlags,
    InvalidRadix(u32),
    MisplacedDirective,
    MissingCloseDelim(char),
    MissingBranch,
    ExtraBranch,
    TypeError {
        expected: &'static str,
        found: &'static str,
    },
    UnrecognizedDirective(char),
}

Represents an error in formatting a string.

Variants

Error message

Extraneous fields to directive

Field value exceeded expected range

Wrong type to field value

Fields of FieldTypeError

Type of value expected

Type found

End of format string reached before directive completed

Group-closing directive encountered without matching opener

Incorrect flags given to directive

Infinite loop detected in iteration directive ~{...~}

Insufficient arguments to format string

Overflow converting a value to Integer

Invalid flags specifier

Invalid radix to ~r directive

Directive encountered where it is not expected

End of format string reached with open grouping directive

Missing required branch within a conditional directive

End of branch directive found where end of conditional was expected

Argument value of incorrect type received

Fields of TypeError

Expected value type

Type found

Unrecognized directive character

Methods

impl FormatError
[src]

Convenience function to return a TypeError value when expected type is expected, but some other type of value is found.

Trait Implementations

impl Clone for FormatError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for FormatError
[src]

Formats the value using the given formatter.

impl Eq for FormatError
[src]

impl PartialEq for FormatError
[src]

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

This method tests for !=.

impl Display for FormatError
[src]

Formats the value using the given formatter. Read more