Struct glossa_codegen::highlight::HighLightRes
source · pub struct HighLightRes<'name> { /* private fields */ }Implementations§
source§impl<'name> HighLightRes<'name>
impl<'name> HighLightRes<'name>
pub fn set_theme_once(&self) -> &Theme
pub fn static_theme_set() -> &'static ThemeSet
pub const fn monokai_theme_name() -> &'static str
pub const fn ayu_dark_theme_name() -> &'static str
source§impl<'name> HighLightRes<'name>
impl<'name> HighLightRes<'name>
source§impl<'name> HighLightRes<'name>
impl<'name> HighLightRes<'name>
pub fn get_name_mut(&mut self) -> &mut Cow<'name, str>
pub fn get_theme_mut(&mut self) -> &mut OnceCell<Theme>
pub fn get_syntax_set_mut(&mut self) -> &mut &'static SyntaxSet
pub fn get_theme_set_mut(&mut self) -> &mut &'name ThemeSet
pub fn get_background_mut(&mut self) -> &mut bool
Trait Implementations§
source§impl<'name> Clone for HighLightRes<'name>
impl<'name> Clone for HighLightRes<'name>
source§fn clone(&self) -> HighLightRes<'name>
fn clone(&self) -> HighLightRes<'name>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more