Enum editeur::GraphicError
[−]
[src]
pub enum GraphicError { ReadDir(Error), OpenFile(Error), ReadFile(Error), MkDirTexel(Error), MkDirSprite(Error), Posture(PostureError), 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.
Posture(PostureError)
The Posture interface has meet an error.
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
[src]
impl Display for GraphicError
[src]
fn fmt(&self, _: &mut Formatter) -> Result
The function fmt
formats the value using
the given formatter.
impl Error for GraphicError
[src]
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.
impl From<VarError> for GraphicError
[src]
fn from(_: VarError) -> GraphicError
Performs the conversion.