pub enum PatchingError {
PatchParsingFailed(ReadError),
FontParsingFailed(ReadError),
SerializationError(SerializeErrorFlags),
IncompatiblePatch,
NonIncrementalFont,
InvalidPatch(&'static str),
EmptyPatchList,
InternalError,
MissingPatches,
}Expand description
An error that occurs while trying to apply an IFT patch to a font file.
Variants§
PatchParsingFailed(ReadError)
FontParsingFailed(ReadError)
SerializationError(SerializeErrorFlags)
IncompatiblePatch
NonIncrementalFont
InvalidPatch(&'static str)
EmptyPatchList
InternalError
MissingPatches
Trait Implementations§
Source§impl Clone for PatchingError
impl Clone for PatchingError
Source§fn clone(&self) -> PatchingError
fn clone(&self) -> PatchingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatchingError
impl Debug for PatchingError
Source§impl Display for PatchingError
impl Display for PatchingError
Source§impl Error for PatchingError
impl Error for PatchingError
1.30.0 · 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()
Source§impl From<DecodeError> for PatchingError
impl From<DecodeError> for PatchingError
Source§fn from(decoding_error: DecodeError) -> Self
fn from(decoding_error: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<ReadError> for PatchingError
impl From<ReadError> for PatchingError
Source§impl From<SerializeErrorFlags> for PatchingError
impl From<SerializeErrorFlags> for PatchingError
Source§fn from(err: SerializeErrorFlags) -> Self
fn from(err: SerializeErrorFlags) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PatchingError
impl PartialEq for PatchingError
Source§fn eq(&self, other: &PatchingError) -> bool
fn eq(&self, other: &PatchingError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatchingError
Auto Trait Implementations§
impl Freeze for PatchingError
impl RefUnwindSafe for PatchingError
impl Send for PatchingError
impl Sync for PatchingError
impl Unpin for PatchingError
impl UnsafeUnpin for PatchingError
impl UnwindSafe for PatchingError
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