pub enum AtlasError {
Inconsistent,
TooLarge,
Full,
}Expand description
Why a glyph could not be added.
Variants§
Inconsistent
The coverage’s dimensions and its buffer disagree.
TooLarge
The glyph does not fit, even in an empty atlas.
Full
The atlas is full.
Distinct from TooLarge because the remedies differ: this one is fixed
by evicting or by growing, and that one never is.
Trait Implementations§
Source§impl Clone for AtlasError
impl Clone for AtlasError
impl Copy for AtlasError
Source§impl Debug for AtlasError
impl Debug for AtlasError
Source§impl Display for AtlasError
impl Display for AtlasError
impl Eq for AtlasError
Source§impl Error for AtlasError
impl Error for AtlasError
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 AtlasError
impl PartialEq for AtlasError
impl StructuralPartialEq for AtlasError
Auto Trait Implementations§
impl Freeze for AtlasError
impl RefUnwindSafe for AtlasError
impl Send for AtlasError
impl Sync for AtlasError
impl Unpin for AtlasError
impl UnsafeUnpin for AtlasError
impl UnwindSafe for AtlasError
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