pub struct SubsetError(Error);Expand description
Wraps [subsetter::Error] without exposing the dependency in the
public API. The PDF emit path bails on this error with a
Diagnostic. The inner variant is private: callers debug via
the Display/Debug impls, not pattern matching on
subsetter::Error directly.
Tuple Fields§
§0: ErrorTrait Implementations§
Source§impl Clone for SubsetError
impl Clone for SubsetError
Source§fn clone(&self) -> SubsetError
fn clone(&self) -> SubsetError
Returns a duplicate 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 SubsetError
impl Debug for SubsetError
Source§impl Display for SubsetError
impl Display for SubsetError
Source§impl Error for SubsetError
impl Error for SubsetError
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()
impl Copy for SubsetError
Auto Trait Implementations§
impl Freeze for SubsetError
impl RefUnwindSafe for SubsetError
impl Send for SubsetError
impl Sync for SubsetError
impl Unpin for SubsetError
impl UnsafeUnpin for SubsetError
impl UnwindSafe for SubsetError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.