Enum syntect::LoadingError [] [src]

pub enum LoadingError {
    WalkDir(Error),
    Io(IoError),
    ParseSyntax(ParseSyntaxError),
    ParseTheme(ParseThemeError),
    ReadSettings(SettingsError),
    BadPath,
}

Common error type used by syntax and theme loading

Variants

WalkDir(Error)

error finding all the files in a directory

Io(IoError)

error reading a file

ParseSyntax(ParseSyntaxError)

a syntax file was invalid in some way

ParseTheme(ParseThemeError)

a theme file was invalid in some way

ReadSettings(SettingsError)

a theme's Plist syntax was invalid in some way

BadPath

A path given to a method was invalid. Possibly because it didn't reference a file or wasn't UTF-8.

Trait Implementations

impl Debug for LoadingError
[src]

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

Formats the value using the given formatter.

impl From<SettingsError> for LoadingError
[src]

fn from(error: SettingsError) -> LoadingError

Performs the conversion.

impl From<IoError> for LoadingError
[src]

fn from(error: IoError) -> LoadingError

Performs the conversion.

impl From<ParseThemeError> for LoadingError
[src]

fn from(error: ParseThemeError) -> LoadingError

Performs the conversion.

impl From<ParseSyntaxError> for LoadingError
[src]

fn from(error: ParseSyntaxError) -> LoadingError

Performs the conversion.