pub enum FontMeasureError {
ZeroSize,
InvalidScale,
Unrepresentable,
}Expand description
A font size, scale or resulting coordinate cannot be measured safely.
Variants§
ZeroSize
Font size must be nonzero.
InvalidScale
Scale must be finite and strictly positive.
Unrepresentable
Scaling or layout overflowed, underflowed to zero, or lost enough f32
precision that an advance or an outer visible pixel edge no longer moves.
Trait Implementations§
Source§impl Clone for FontMeasureError
impl Clone for FontMeasureError
Source§fn clone(&self) -> FontMeasureError
fn clone(&self) -> FontMeasureError
Returns a duplicate of the value. Read more
1.0.0 · 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 FontMeasureError
impl Debug for FontMeasureError
Source§impl Display for FontMeasureError
impl Display for FontMeasureError
Source§impl Error for FontMeasureError
impl Error for FontMeasureError
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 FontMeasureError
impl PartialEq for FontMeasureError
impl Copy for FontMeasureError
impl Eq for FontMeasureError
impl StructuralPartialEq for FontMeasureError
Auto Trait Implementations§
impl Freeze for FontMeasureError
impl RefUnwindSafe for FontMeasureError
impl Send for FontMeasureError
impl Sync for FontMeasureError
impl Unpin for FontMeasureError
impl UnwindSafe for FontMeasureError
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