pub enum TypfError {
NotImplemented(String),
FeatureNotCompiled(String),
UnsupportedBackendCombination(String, String),
FontLoad(FontLoadError),
ShapingFailed(ShapingError),
RenderingFailed(RenderError),
ExportFailed(ExportError),
Pipeline(String),
ConfigError(String),
Io(Error),
Other(String),
}Expand description
Every failure in Typf has a story to tell
Variants§
NotImplemented(String)
FeatureNotCompiled(String)
UnsupportedBackendCombination(String, String)
FontLoad(FontLoadError)
ShapingFailed(ShapingError)
RenderingFailed(RenderError)
ExportFailed(ExportError)
Pipeline(String)
ConfigError(String)
Io(Error)
Other(String)
Trait Implementations§
Source§impl Error for TypfError
impl Error for TypfError
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<ExportError> for TypfError
impl From<ExportError> for TypfError
Source§fn from(source: ExportError) -> Self
fn from(source: ExportError) -> Self
Converts to this type from the input type.
Source§impl From<FontLoadError> for TypfError
impl From<FontLoadError> for TypfError
Source§fn from(source: FontLoadError) -> Self
fn from(source: FontLoadError) -> Self
Converts to this type from the input type.
Source§impl From<RenderError> for TypfError
impl From<RenderError> for TypfError
Source§fn from(source: RenderError) -> Self
fn from(source: RenderError) -> Self
Converts to this type from the input type.
Source§impl From<ShapingError> for TypfError
impl From<ShapingError> for TypfError
Source§fn from(source: ShapingError) -> Self
fn from(source: ShapingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TypfError
impl !RefUnwindSafe for TypfError
impl Send for TypfError
impl Sync for TypfError
impl Unpin for TypfError
impl UnsafeUnpin for TypfError
impl !UnwindSafe for TypfError
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