Enum syntect::LoadingError
source · pub enum LoadingError {
WalkDir(Error),
Io(IoError),
ParseSyntax(ParseSyntaxError, Option<String>),
ParseTheme(ParseThemeError),
ReadSettings(SettingsError),
BadPath,
}
Expand description
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, Option<String>)
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§
source§impl Debug for LoadingError
impl Debug for LoadingError
source§impl Display for LoadingError
impl Display for LoadingError
source§impl Error for LoadingError
impl Error for LoadingError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl From<Error> for LoadingError
impl From<Error> for LoadingError
source§fn from(error: IoError) -> LoadingError
fn from(error: IoError) -> LoadingError
Converts to this type from the input type.
source§impl From<ParseSyntaxError> for LoadingError
impl From<ParseSyntaxError> for LoadingError
source§fn from(error: ParseSyntaxError) -> LoadingError
fn from(error: ParseSyntaxError) -> LoadingError
Converts to this type from the input type.
source§impl From<ParseThemeError> for LoadingError
impl From<ParseThemeError> for LoadingError
source§fn from(error: ParseThemeError) -> LoadingError
fn from(error: ParseThemeError) -> LoadingError
Converts to this type from the input type.
source§impl From<SettingsError> for LoadingError
impl From<SettingsError> for LoadingError
source§fn from(error: SettingsError) -> LoadingError
fn from(error: SettingsError) -> LoadingError
Converts to this type from the input type.