pub enum ParseError {
HeaderMissing,
InvalidMagicBytes,
UnknownVersion(u32),
GlyphTableTruncated {
expected_byte_count: usize,
},
}
Expand description
Possible errors returned by the Pcf::parse function.
Variants§
HeaderMissing
The provided buffer is not large enough to contain the PCF header.
InvalidMagicBytes
The PCF header does not contain 72 b5 4a 86 as its first four bytes.
UnknownVersion(u32)
The PCF header contains a version other than 0. (0 is the only version that exists as of writing)
GlyphTableTruncated
The provided buffer is not large enough to contain all of the glyphs that the PCF header indicated that it should.
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParseError
impl Debug for ParseError
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl Copy for ParseError
impl Eq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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