Struct ultron_syntaxes_themes::ThemeSet [−][src]
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 hereSolarized (dark)
andSolarized (light)
A set of themes, includes convenient methods for loading and discovering themes.
pub fn discover_theme_paths<P>(
folder: P
) -> Result<Vec<PathBuf, Global>, LoadingError> where
P: AsRef<Path>,
pub fn discover_theme_paths<P>(
folder: P
) -> Result<Vec<PathBuf, Global>, LoadingError> where
P: AsRef<Path>,
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
pub fn add_from_folder<P>(&mut self, folder: P) -> Result<(), LoadingError> where
P: AsRef<Path>,
pub fn add_from_folder<P>(&mut self, folder: P) -> Result<(), LoadingError> where
P: AsRef<Path>,
Load all the themes in the folder into this ThemeSet
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ThemeSet, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ThemeSet, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more