[][src]Enum elefont::CacheError

pub enum CacheError {
    TextureTooSmall,
    OutOfSpace,
    NonRenderableGlyph(Glyph),
}

An error generated during a cache operation

Variants

TextureTooSmall

No matter what, the texture is too small to render the glyph (even when empty)

To fix this error, expand the texture. Make sure to clear the cache if the texture data is also invalidated

OutOfSpace

The cache cannot store the current request without clearing it first

NonRenderableGlyph(Glyph)

A glyph was passed to a render method but it could not be rendered

For example, unsized glyphs (glyphs with None for their bounds) cannot be rendered

Trait Implementations

impl Clone for CacheError[src]

impl Copy for CacheError[src]

impl Debug for CacheError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.