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§
Source§impl Ord for CacheErr
impl Ord for CacheErr
Source§impl PartialOrd for CacheErr
impl PartialOrd for CacheErr
impl Copy for CacheErr
impl Eq 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 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