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