Struct editor2::display_map::Highlights
source · pub struct Highlights<'a> {
pub text_highlights: Option<&'a TreeMap<Option<TypeId>, Arc<(HighlightStyle, Vec<Range<Anchor>>)>>>,
pub inlay_highlights: Option<&'a BTreeMap<TypeId, HashMap<InlayId, (HighlightStyle, InlayHighlight)>>>,
pub inlay_highlight_style: Option<HighlightStyle>,
pub suggestion_highlight_style: Option<HighlightStyle>,
}
Fields§
§text_highlights: Option<&'a TreeMap<Option<TypeId>, Arc<(HighlightStyle, Vec<Range<Anchor>>)>>>
§inlay_highlights: Option<&'a BTreeMap<TypeId, HashMap<InlayId, (HighlightStyle, InlayHighlight)>>>
§inlay_highlight_style: Option<HighlightStyle>
§suggestion_highlight_style: Option<HighlightStyle>
Trait Implementations§
source§impl<'a> Debug for Highlights<'a>
impl<'a> Debug for Highlights<'a>
source§impl<'a> Default for Highlights<'a>
impl<'a> Default for Highlights<'a>
source§fn default() -> Highlights<'a>
fn default() -> Highlights<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Highlights<'a>
impl<'a> Send for Highlights<'a>
impl<'a> Sync for Highlights<'a>
impl<'a> Unpin for Highlights<'a>
impl<'a> UnwindSafe for Highlights<'a>
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