Enum rusttype::Error [] [src]

pub enum Error {
    UnrecognizedFormat,
    IllFormed,
    CollectionIndexOutOfBounds,
    CollectionContainsMultipleFonts,
}

The type for errors returned by rusttype.

Variants

Font data presented to rusttype is not in a format that the library recognizes.

Font data presented to rusttype was ill-formed (lacking necessary tables, for example).

The caller tried to access the i'th font from a FontCollection, but the collection doesn't contain that many fonts.

The caller tried to convert a FontCollection into a font via into_font, but the FontCollection contains more than one font.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

impl From<Error> for Error
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error