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
error finding all the files in a directory
Tuple Fields of WalkDir
0: Errorerror reading a file
Tuple Fields of Io
0: IoErrora syntax file was invalid in some way
Tuple Fields of ParseSyntax
0: ParseSyntaxError1: Option<String>a theme file was invalid in some way
Tuple Fields of ParseTheme
a theme’s Plist syntax was invalid in some way
Tuple Fields of ReadSettings
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.