pub struct ThemeSet {
    pub themes: BTreeMap<String, Theme>,
}

Fields

themes: BTreeMap<String, Theme>

Implementations

Loads the set of default themes Currently includes (these are the keys for the map):

  • base16-ocean.dark,base16-eighties.dark,base16-mocha.dark,base16-ocean.light
  • InspiredGitHub from here
  • Solarized (dark) and Solarized (light)

A set of themes, includes convenient methods for loading and discovering themes.

Creates an empty set

Returns all the themes found in a folder

This is god for enumerating before loading one with get_theme

Loads a theme given a path to a .tmTheme file

Loads a theme given a readable stream

Generate a ThemeSet from all themes in a folder

Load all the themes in the folder into this ThemeSet

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.