Struct language2::HighlightMap
source · pub struct HighlightMap(_);
Implementations§
source§impl HighlightMap
impl HighlightMap
pub fn new(capture_names: &[String], theme: &SyntaxTheme) -> Self
pub fn get(&self, capture_id: u32) -> HighlightId
Trait Implementations§
source§impl Clone for HighlightMap
impl Clone for HighlightMap
source§fn clone(&self) -> HighlightMap
fn clone(&self) -> HighlightMap
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 moresource§impl Debug for HighlightMap
impl Debug for HighlightMap
Auto Trait Implementations§
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