pub enum AddFontError {
Borrowed,
Font(FontError),
}Expand description
Why a face did not reach a session’s registry.
Variants§
Borrowed
The session lays out against a registry it borrowed, and the caller who owns it is the one who can add to it.
Font(FontError)
The bytes are not a face this build can read.
Trait Implementations§
Source§impl Debug for AddFontError
impl Debug for AddFontError
Source§impl Display for AddFontError
impl Display for AddFontError
Source§impl Error for AddFontError
impl Error for AddFontError
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 AddFontError
impl RefUnwindSafe for AddFontError
impl Send for AddFontError
impl Sync for AddFontError
impl Unpin for AddFontError
impl UnsafeUnpin for AddFontError
impl UnwindSafe for AddFontError
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
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.