#[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
sourceimpl Clone for ExtmarkHlMode
impl Clone for ExtmarkHlMode
sourcefn clone(&self) -> ExtmarkHlMode
fn clone(&self) -> ExtmarkHlMode
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ExtmarkHlMode
impl Debug for ExtmarkHlMode
sourceimpl<'de> Deserialize<'de> for ExtmarkHlMode
impl<'de> Deserialize<'de> for ExtmarkHlMode
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ExtmarkHlMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ExtmarkHlMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<ExtmarkHlMode> for String
impl From<ExtmarkHlMode> for String
sourcefn from(mode: ExtmarkHlMode) -> String
fn from(mode: ExtmarkHlMode) -> String
Converts to this type from the input type.
sourceimpl Hash for ExtmarkHlMode
impl Hash for ExtmarkHlMode
sourceimpl PartialEq<ExtmarkHlMode> for ExtmarkHlMode
impl PartialEq<ExtmarkHlMode> for ExtmarkHlMode
sourcefn eq(&self, other: &ExtmarkHlMode) -> bool
fn eq(&self, other: &ExtmarkHlMode) -> bool
impl Copy for ExtmarkHlMode
impl Eq for ExtmarkHlMode
impl StructuralEq for ExtmarkHlMode
impl StructuralPartialEq for ExtmarkHlMode
Auto Trait Implementations
impl RefUnwindSafe for ExtmarkHlMode
impl Send for ExtmarkHlMode
impl Sync for ExtmarkHlMode
impl Unpin for ExtmarkHlMode
impl UnwindSafe for ExtmarkHlMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more