#[non_exhaustive]pub enum ExtmarkHlMode {
Replace,
Combine,
Blend,
}
Expand description
Controls how the highlights of a virtual text associated to an extmark are combined with the highlights of the text.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Replace
Only show the virtual text’s highlight (default).
Combine
Combine with background text’s highlight.
Blend
Blend with background text’s highlight.
Trait Implementations§
Source§impl Clone for ExtmarkHlMode
impl Clone for ExtmarkHlMode
Source§fn clone(&self) -> ExtmarkHlMode
fn clone(&self) -> ExtmarkHlMode
Returns a duplicate 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 ExtmarkHlMode
impl Debug for ExtmarkHlMode
Source§impl<'de> Deserialize<'de> for ExtmarkHlMode
impl<'de> Deserialize<'de> for ExtmarkHlMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ExtmarkHlMode> for String
impl From<ExtmarkHlMode> for String
Source§fn from(mode: ExtmarkHlMode) -> Self
fn from(mode: ExtmarkHlMode) -> Self
Converts to this type from the input type.
Source§impl Hash for ExtmarkHlMode
impl Hash for ExtmarkHlMode
Source§impl PartialEq for ExtmarkHlMode
impl PartialEq for ExtmarkHlMode
impl Copy for ExtmarkHlMode
impl Eq for ExtmarkHlMode
impl StructuralPartialEq for ExtmarkHlMode
Auto Trait Implementations§
impl Freeze for ExtmarkHlMode
impl RefUnwindSafe for ExtmarkHlMode
impl Send for ExtmarkHlMode
impl Sync for ExtmarkHlMode
impl Unpin for ExtmarkHlMode
impl UnwindSafe for ExtmarkHlMode
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