Enum rusttype::Error
[−]
[src]
pub enum Error { UnrecognizedFormat, IllFormed, CollectionIndexOutOfBounds, CollectionContainsMultipleFonts, }
The type for errors returned by rusttype.
Variants
UnrecognizedFormat
Font data presented to rusttype is not in a format that the library recognizes.
IllFormed
Font data presented to rusttype was ill-formed (lacking necessary tables, for example).
CollectionIndexOutOfBounds
The caller tried to access the i
'th font from a FontCollection
, but
the collection doesn't contain that many fonts.
CollectionContainsMultipleFonts
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more