[−][src]Struct lsp_types::ColorPresentation
Fields
label: String
The label of this color presentation. It will be shown on the color picker header. By default this is also the text that is inserted when selecting this color presentation.
text_edit: Option<TextEdit>
An edit which is applied to a document when selecting
this presentation for the color. When falsy
the label
is used.
additional_text_edits: Option<Vec<TextEdit>>
An optional array of additional text edits that are applied when selecting this color presentation. Edits must not overlap with the main edit nor with themselves.
Trait Implementations
impl Eq for ColorPresentation
[src]
impl Eq for ColorPresentation
impl Default for ColorPresentation
[src]
impl Default for ColorPresentation
fn default() -> ColorPresentation | [src] |
impl PartialEq<ColorPresentation> for ColorPresentation
[src]
impl PartialEq<ColorPresentation> for ColorPresentation
fn eq(&self, other: &ColorPresentation) -> bool | [src] |
fn ne(&self, other: &ColorPresentation) -> bool | [src] |
impl Clone for ColorPresentation
[src]
impl Clone for ColorPresentation
fn clone(&self) -> ColorPresentation | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for ColorPresentation
[src]
impl Debug for ColorPresentation
impl Serialize for ColorPresentation
[src]
impl Serialize for ColorPresentation
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where | [src] |
impl<'de> Deserialize<'de> for ColorPresentation
[src]
impl<'de> Deserialize<'de> for ColorPresentation
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where | [src] |
Auto Trait Implementations
impl Send for ColorPresentation
impl Send for ColorPresentation
impl Sync for ColorPresentation
impl Sync for ColorPresentation
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,