pub enum ShapingError {
NoFontFound(String),
InvalidFontId,
EmptyShape(String),
InvalidFontData,
}Expand description
Errors that can occur during text shaping and layout.
Variants§
NoFontFound(String)
No font could be found for the given text/style.
InvalidFontId
The font database returned an invalid font ID.
EmptyShape(String)
Shaping produced no glyphs for non-empty input.
InvalidFontData
An embedded font data reference was invalid.
Trait Implementations§
Source§impl Clone for ShapingError
impl Clone for ShapingError
Source§fn clone(&self) -> ShapingError
fn clone(&self) -> ShapingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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 PartialEq for ShapingError
impl PartialEq for ShapingError
Source§fn eq(&self, other: &ShapingError) -> bool
fn eq(&self, other: &ShapingError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShapingError
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