[][src]Enum syntect::LoadingError

pub enum LoadingError {
    WalkDir(Error),
    Io(IoError),
    ParseSyntax(ParseSyntaxErrorOption<String>),
    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

error reading a file

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]

impl Display for LoadingError[src]

impl Error for LoadingError[src]

impl From<Error> for LoadingError[src]

impl From<ParseSyntaxError> for LoadingError[src]

impl From<ParseThemeError> for LoadingError[src]

impl From<SettingsError> for LoadingError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.