#[non_exhaustive]pub enum PreparedTextError {
Shaped(ShapedLineError),
Text(TextError),
}Expand description
Rejected prepared-text provenance/limits or an underlying atlas/run operation.
Existing UTF-8 APIs retain their original TextError return type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Shaped(ShapedLineError)
The immutable CPU line does not match this font/style or requested limits.
Text(TextError)
Rasterization, atlas capacity, run storage or GPU resource validation failed.
Trait Implementations§
Source§impl Debug for PreparedTextError
impl Debug for PreparedTextError
Source§impl Display for PreparedTextError
impl Display for PreparedTextError
Source§impl Error for PreparedTextError
impl Error for PreparedTextError
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<ShapedLineError> for PreparedTextError
impl From<ShapedLineError> for PreparedTextError
Source§fn from(error: ShapedLineError) -> Self
fn from(error: ShapedLineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PreparedTextError
impl RefUnwindSafe for PreparedTextError
impl Send for PreparedTextError
impl Sync for PreparedTextError
impl Unpin for PreparedTextError
impl UnsafeUnpin for PreparedTextError
impl UnwindSafe for PreparedTextError
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