pub enum OxiTextError {
Shaping(String),
Layout(String),
Raster(String),
FontNotFound,
InvalidFont,
Other(String),
}Expand description
Errors returned by the OxiText pipeline.
Variants§
Shaping(String)
An error occurred during glyph shaping.
Layout(String)
An error occurred during layout computation.
Raster(String)
An error occurred during glyph rasterization.
FontNotFound
No usable font was found.
InvalidFont
The supplied font data is corrupt or uses an unsupported format.
Other(String)
A miscellaneous error not covered by a more specific variant.
Trait Implementations§
Source§impl Debug for OxiTextError
impl Debug for OxiTextError
Source§impl Display for OxiTextError
impl Display for OxiTextError
Source§impl Error for OxiTextError
impl Error for OxiTextError
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()
Auto Trait Implementations§
impl Freeze for OxiTextError
impl RefUnwindSafe for OxiTextError
impl Send for OxiTextError
impl Sync for OxiTextError
impl Unpin for OxiTextError
impl UnsafeUnpin for OxiTextError
impl UnwindSafe for OxiTextError
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