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
BadPathA 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[src]
Formats the value using the given formatter. Read more
impl From<SettingsError> for LoadingError[src]
fn from(error: SettingsError) -> LoadingError[src]
Performs the conversion.
impl From<IoError> for LoadingError[src]
fn from(error: IoError) -> LoadingError[src]
Performs the conversion.
impl From<ParseThemeError> for LoadingError[src]
fn from(error: ParseThemeError) -> LoadingError[src]
Performs the conversion.
impl From<ParseSyntaxError> for LoadingError[src]
fn from(error: ParseSyntaxError) -> LoadingError[src]
Performs the conversion.
impl Display for LoadingError[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more