Enum py_literal::FormatError
[−]
pub enum FormatError { Io(Error), EmptySet, }
Error formatting a Python literal.
Variants
Io(Error)
An error caused by the writer.
EmptySet
The literal contained an empty set.
There is no literal representation of an empty set in Python. ({}
represents an empty dict
.)
Trait Implementations
impl Debug for FormatError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for FormatError
impl Error for FormatError
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for FormatError
fn from(err: Error) -> FormatError
Performs the conversion.