pub struct ThemeStyleMap { /* private fields */ }
Expand description
A map from styles to client identifiers for a given Theme
.
Implementations§
Source§impl ThemeStyleMap
impl ThemeStyleMap
pub fn new(themes_dir: Option<PathBuf>) -> ThemeStyleMap
pub fn get_default_style(&self) -> &Style
pub fn get_highlighter(&self) -> Highlighter<'_>
pub fn get_theme_name(&self) -> &str
pub fn get_theme_settings(&self) -> &ThemeSettings
pub fn get_theme_names(&self) -> Vec<String>
pub fn contains_theme(&self, k: &str) -> bool
pub fn set_theme(&mut self, theme_name: &str) -> Result<(), &'static str>
pub fn merge_with_default(&self, style: &Style) -> Style
pub fn lookup(&self, style: &Style) -> Option<usize>
pub fn add(&mut self, style: &Style) -> usize
Auto Trait Implementations§
impl Freeze for ThemeStyleMap
impl RefUnwindSafe for ThemeStyleMap
impl Send for ThemeStyleMap
impl Sync for ThemeStyleMap
impl Unpin for ThemeStyleMap
impl UnwindSafe for ThemeStyleMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more