Enum sdl2_ttf::FontError [] [src]

pub enum FontError {
    InvalidLatin1Text(NulError),
    SdlError(ErrorMessage),
}

A font-related error.

Variants

InvalidLatin1Text(NulError)

A Latin-1 encoded byte string is invalid.

SdlError(ErrorMessage)

A SDL2-related error occured.

Trait Implementations

impl Debug for FontError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for FontError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause<'a>(&'a self) -> Option<&'a Error>

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

impl Display for FontError
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.