pub enum ColorProviderCapability {
Simple(bool),
ColorProvider(ColorProviderOptions),
Options(StaticTextDocumentColorProviderOptions),
}
Variants§
Trait Implementations§
source§impl Clone for ColorProviderCapability
impl Clone for ColorProviderCapability
source§fn clone(&self) -> ColorProviderCapability
fn clone(&self) -> ColorProviderCapability
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 ColorProviderCapability
impl Debug for ColorProviderCapability
source§impl<'de> Deserialize<'de> for ColorProviderCapability
impl<'de> Deserialize<'de> for ColorProviderCapability
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<ColorProviderOptions> for ColorProviderCapability
impl From<ColorProviderOptions> for ColorProviderCapability
source§fn from(from: ColorProviderOptions) -> Self
fn from(from: ColorProviderOptions) -> Self
Converts to this type from the input type.
source§impl From<StaticTextDocumentColorProviderOptions> for ColorProviderCapability
impl From<StaticTextDocumentColorProviderOptions> for ColorProviderCapability
source§fn from(from: StaticTextDocumentColorProviderOptions) -> Self
fn from(from: StaticTextDocumentColorProviderOptions) -> Self
Converts to this type from the input type.
source§impl From<bool> for ColorProviderCapability
impl From<bool> for ColorProviderCapability
source§impl PartialEq for ColorProviderCapability
impl PartialEq for ColorProviderCapability
source§fn eq(&self, other: &ColorProviderCapability) -> bool
fn eq(&self, other: &ColorProviderCapability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ColorProviderCapability
impl Serialize for ColorProviderCapability
impl Eq for ColorProviderCapability
impl StructuralPartialEq for ColorProviderCapability
Auto Trait Implementations§
impl Freeze for ColorProviderCapability
impl RefUnwindSafe for ColorProviderCapability
impl Send for ColorProviderCapability
impl Sync for ColorProviderCapability
impl Unpin for ColorProviderCapability
impl UnwindSafe for ColorProviderCapability
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