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<ColorProviderCapability> for ColorProviderCapability
impl PartialEq<ColorProviderCapability> 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 ==
.