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 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 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<ColorProviderCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ColorProviderCapability, <__D as Deserializer<'de>>::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) -> ColorProviderCapability
fn from(from: ColorProviderOptions) -> ColorProviderCapability
Converts to this type from the input type.
Source§impl From<StaticTextDocumentColorProviderOptions> for ColorProviderCapability
impl From<StaticTextDocumentColorProviderOptions> for ColorProviderCapability
Source§fn from(from: StaticTextDocumentColorProviderOptions) -> ColorProviderCapability
fn from(from: StaticTextDocumentColorProviderOptions) -> ColorProviderCapability
Converts to this type from the input type.
Source§impl From<bool> for ColorProviderCapability
impl From<bool> for ColorProviderCapability
Source§fn from(from: bool) -> ColorProviderCapability
fn from(from: bool) -> ColorProviderCapability
Converts to this type from the input type.
Source§impl PartialEq for ColorProviderCapability
impl PartialEq for ColorProviderCapability
Source§impl Serialize for ColorProviderCapability
impl Serialize for ColorProviderCapability
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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