pub enum Error {
IO(Error),
Parse {
error: ParseIntError,
line_number: u32,
line: String,
},
MissingVersion {
line_number: u32,
line: String,
},
MissingBoundingBox {
line_number: u32,
line: String,
},
MissingValue {
property_name: String,
line_number: u32,
},
InvalidCodepoint {
line_number: u32,
line: String,
},
End,
MalformedFont,
MalformedProperties,
MalformedChar,
}Expand description
Errors for Reader and Writer.
Variants§
IO(Error)
A downstream IO error.
Parse
A downstream parsing error.
Fields
§
error: ParseIntErrorThe parser error
MissingVersion
STARTFONT is missing the format version.
Fields
MissingBoundingBox
There was no bounding box for a character.
Fields
MissingValue
An entry is missing a value.
Fields
InvalidCodepoint
An unknown error.
Fields
End
Eof has been reached.
MalformedFont
The font declaration is malformed.
MalformedProperties
The property declarations are malformed.
MalformedChar
The character declaration is malformed.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more