pub enum RenderError {
Show 13 variants
ZeroDimensions {
width: u32,
height: u32,
},
DimensionsTooLarge {
width: u32,
height: u32,
max_width: u32,
max_height: u32,
},
TotalPixelsTooLarge {
width: u32,
height: u32,
total: u64,
max: u64,
},
InvalidDimensions {
width: u32,
height: u32,
},
GlyphCountTooLarge(usize, usize),
OutOfMemory,
FormatNotSupported(String),
BackendError(String),
InvalidFont,
GlyphNotFound(u32),
OutlineExtractionFailed,
PathBuildingFailed,
PixmapCreationFailed,
}Expand description
When rendering fails
Variants§
ZeroDimensions
DimensionsTooLarge
TotalPixelsTooLarge
InvalidDimensions
Legacy variant for backwards compatibility - prefer ZeroDimensions or DimensionsTooLarge
GlyphCountTooLarge(usize, usize)
OutOfMemory
FormatNotSupported(String)
BackendError(String)
InvalidFont
GlyphNotFound(u32)
OutlineExtractionFailed
PathBuildingFailed
PixmapCreationFailed
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
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<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.
Auto Trait Implementations§
impl Freeze for RenderError
impl RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
impl UnwindSafe for RenderError
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