pub enum ShapingError {
InvalidText,
FontSizeTooLarge(f32, f32),
ScriptNotSupported(String),
LanguageNotSupported(String),
FeatureNotSupported(String),
BackendError(String),
}Expand description
When shaping goes wrong
Variants§
InvalidText
FontSizeTooLarge(f32, f32)
ScriptNotSupported(String)
LanguageNotSupported(String)
FeatureNotSupported(String)
BackendError(String)
Trait Implementations§
Source§impl Debug for ShapingError
impl Debug for ShapingError
Source§impl Display for ShapingError
impl Display for ShapingError
Source§impl Error for ShapingError
impl Error for ShapingError
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<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 ShapingError
impl RefUnwindSafe for ShapingError
impl Send for ShapingError
impl Sync for ShapingError
impl Unpin for ShapingError
impl UnsafeUnpin for ShapingError
impl UnwindSafe for ShapingError
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