Enum piston_window::Error [] [src]

pub enum Error {
    Texture(CombinedError),
    IoError(Error),
    NoFont,
}

An enum to represent various possible run-time errors that may occur.

Variants

Texture

An error happened when creating a gfx texture.

IoError

An io error happened when reading font files.

NoFont

No font was found in the file.

Trait Implementations

impl From<CombinedError> for Error

fn from(tex_err: CombinedError) -> Error

impl From<Error> for Error

fn from(io_error: Error) -> Error

Derived Implementations

impl Debug for Error

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