Enum neko::graphic::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
ReadDir(Error)
Can't read the sub-directory.
OpenFile(Error)
Can't open the file.
ReadFile(Error)
Can't read the file.
MkDirTexel(Error)
Can't create the texel sub-directory.
MkDirSprite(Error)
Can't create the sprite sub-directory.
Draw(DrawError)
The Draw interface has meet an error.
Emotion(EmotionError)
The Emotion interface has meet an error.
Texel(TexelError)
The Texel interface has meet an error.
SpriteSplitFirst(String)
Can't split the chunk of sprite.
Part(PartError)
The Part interface has meet an error.
Sheet(SheetError)
The Sheet interface has meet an error.
NekoPath
Can't found the NEKO_PATH environement variable.
Glyph
Can't found the glyph of texel.
FoundTexel(String)
Can't found the texel.
SyntaxTexel(String)
Unvalid texel syntax.
Trait Implementations
impl Debug for GraphicError
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl From<VarError> for GraphicError
fn from(VarError) -> GraphicError
Performs the conversion.
impl Display for GraphicError
fn fmt(&self, &mut Formatter) -> Result<(), Error>
The function fmt
formats the value using
the given formatter.
impl Error for GraphicError
fn description(&self) -> &str
The function description
returns a short description of
the error.
fn cause(&self) -> Option<&Error>
The function cause
returns the lower-level cause of
this error if any.