pub enum CacheErr {
RectTooLarge(usize),
DontFit(usize),
}Expand description
Reason of cache failure.
Variants§
RectTooLarge(usize)
At least one of the queued rects is too big to fit into the cache by itself. Contains the number of rects that was added to the cache.
DontFit(usize)
Not all of the requested glyphs fit into the cache, even after clearing all previous cached rects. Contains the number of rects that was added to the cache.
Implementations§
Trait Implementations§
impl Copy for CacheErr
impl Eq for CacheErr
Source§impl Ord for CacheErr
impl Ord for CacheErr
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for CacheErr
impl PartialOrd for CacheErr
impl StructuralPartialEq for CacheErr
Auto Trait Implementations§
impl Freeze for CacheErr
impl RefUnwindSafe for CacheErr
impl Send for CacheErr
impl Sync for CacheErr
impl Unpin for CacheErr
impl UnsafeUnpin for CacheErr
impl UnwindSafe for CacheErr
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