pub struct HighlightMap {
highlights: FnvHashMap<u64, Rc<Highlight>>,
default_hl: Rc<Highlight>,
bg_color: Color,
fg_color: Color,
sp_color: Color,
cterm_bg_color: Color,
cterm_fg_color: Color,
cterm_color: bool,
pmenu: Rc<Highlight>,
pmenu_sel: Rc<Highlight>,
cursor: Rc<Highlight>,
}
Fields§
§highlights: FnvHashMap<u64, Rc<Highlight>>
§default_hl: Rc<Highlight>
§bg_color: Color
§fg_color: Color
§sp_color: Color
§cterm_bg_color: Color
§cterm_fg_color: Color
§cterm_color: bool
§cursor: Rc<Highlight>
Implementations§
Source§impl HighlightMap
impl HighlightMap
pub fn new() -> Self
pub fn default_hl(&self) -> Rc<Highlight>
pub fn set_defaults( &mut self, fg: Color, bg: Color, sp: Color, cterm_fg: Color, cterm_bg: Color, )
pub fn set_use_cterm(&mut self, cterm_color: bool)
pub fn bg(&self) -> &Color
pub fn fg(&self) -> &Color
pub fn get(&self, idx: Option<u64>) -> Rc<Highlight>
pub fn set( &mut self, idx: u64, hl: &HashMap<String, Value>, info: &[HashMap<String, Value>], )
pub fn cell_fg<'a>(&'a self, cell: &'a Cell) -> Option<&'a Color>
pub fn actual_cell_fg<'a>(&'a self, cell: &'a Cell) -> &'a Color
pub fn cell_bg<'a>(&'a self, cell: &'a Cell) -> Option<&'a Color>
pub fn actual_cell_sp<'a>(&'a self, cell: &'a Cell) -> &'a Color
pub fn cursor_bg(&self) -> &Color
Auto Trait Implementations§
impl Freeze for HighlightMap
impl RefUnwindSafe for HighlightMap
impl !Send for HighlightMap
impl !Sync for HighlightMap
impl Unpin for HighlightMap
impl UnwindSafe for HighlightMap
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