Enum neko::prelude::GraphicError []

pub enum GraphicError {
    ReadDir(Error),
    OpenFile(Error),
    ReadFile(Error),
    MkDirTexel(Error),
    MkDirSprite(Error),
    Draw(DrawError),
    Emotion(EmotionError),
    Texel(TexelError),
    SpriteSplitFirst(String),
    Part(PartError),
    Sheet(SheetError),
    NekoPath,
    Glyph,
    FoundTexel(String),
    SyntaxTexel(String),
}

The enum GraphicError defines the possible errors from constructor Graphic.

Variants

Can't read the sub-directory.

Can't open the file.

Can't read the file.

Can't create the texel sub-directory.

Can't create the sprite sub-directory.

The Draw interface has meet an error.

The Emotion interface has meet an error.

The Texel interface has meet an error.

Can't split the chunk of sprite.

The Part interface has meet an error.

The Sheet interface has meet an error.

Can't found the NEKO_PATH environement variable.

Can't found the glyph of texel.

Can't found the texel.

Unvalid texel syntax.

Trait Implementations

impl Debug for GraphicError

Formats the value using the given formatter.

impl From<VarError> for GraphicError

Performs the conversion.

impl Display for GraphicError

The function fmt formats the value using the given formatter.

impl Error for GraphicError

The function description returns a short description of the error.

The function cause returns the lower-level cause of this error if any.