Enum syntect::LoadingError [−][src]
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)
Tuple Fields
0: Error
error finding all the files in a directory
Io(IoError)
Tuple Fields
0: IoError
error reading a file
ParseSyntax(ParseSyntaxError, Option<String>)
a syntax file was invalid in some way
ParseTheme(ParseThemeError)
Tuple Fields
a theme file was invalid in some way
ReadSettings(SettingsError)
Tuple Fields
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
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.