Enum ttf_parser::FaceParsingError [−][src]
pub enum FaceParsingError { MalformedFont, UnknownMagic, FaceIndexOutOfBounds, NoHeadTable, NoHheaTable, NoMaxpTable, }
Expand description
A list of font face parsing errors.
Variants
An attempt to read out of bounds detected.
Should occur only on malformed fonts.
Face data must start with 0x00010000
, 0x74727565
, 0x4F54544F
or 0x74746366
.
The face index is larger than the number of faces in the font.
The head
table is missing or malformed.
The hhea
table is missing or malformed.
The maxp
table is missing or malformed.
Trait Implementations
impl Clone for FaceParsingError
[src]
impl Clone for FaceParsingError
[src]fn clone(&self) -> FaceParsingError
[src]
fn clone(&self) -> FaceParsingError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for FaceParsingError
[src]
impl Debug for FaceParsingError
[src]impl Display for FaceParsingError
[src]
impl Display for FaceParsingError
[src]impl Error for FaceParsingError
[src]
impl Error for FaceParsingError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl PartialEq<FaceParsingError> for FaceParsingError
[src]
impl PartialEq<FaceParsingError> for FaceParsingError
[src]impl Copy for FaceParsingError
[src]
impl StructuralPartialEq for FaceParsingError
[src]
Auto Trait Implementations
impl RefUnwindSafe for FaceParsingError
impl Send for FaceParsingError
impl Sync for FaceParsingError
impl Unpin for FaceParsingError
impl UnwindSafe for FaceParsingError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more