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(Box<str>)Error message
ExtraFieldsExtraneous fields to directive
FieldOverflowField value exceeded expected range
FieldTypeErrorWrong type to field value
Fields of FieldTypeError
                           expected: &'static str | Type of value expected  | 
found: &'static str | Type found  | 
IncompleteDirectiveEnd of format string reached before directive completed
IncorrectCloseDelim(char)Group-closing directive encountered without matching opener
IncorrectFlagsIncorrect flags given to directive
InfiniteLoopInfinite loop detected in iteration directive ~{...~}
InsufficientArgumentsInsufficient arguments to format string
IntegerOverflowOverflow converting a value to Integer
InvalidFlagsInvalid flags specifier
InvalidRadix(u32)Invalid radix to ~r directive
MisplacedDirectiveDirective encountered where it is not expected
MissingCloseDelim(char)End of format string reached with open grouping directive
MissingBranchMissing required branch within a conditional directive
ExtraBranchEnd of branch directive found where end of conditional was expected
TypeErrorArgument value of incorrect type received
Fields of TypeError
                           expected: &'static str | Expected value type  | 
found: &'static str | Type found  | 
UnrecognizedDirective(char)Unrecognized directive character
Methods
impl FormatError[src]
fn expected(ty: &'static str, v: &Value) -> FormatError
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]
fn clone(&self) -> FormatError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for FormatError[src]
impl Eq for FormatError[src]
impl PartialEq for FormatError[src]
fn eq(&self, __arg_0: &FormatError) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FormatError) -> bool
This method tests for !=.