Struct languageserver_types::ColorPresentation [−][src]
pub struct ColorPresentation { pub label: String, pub text_edit: Option<TextEdit>, pub additional_text_edits: Option<Vec<TextEdit>>, }
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 Debug for ColorPresentation
[src]
impl Debug for ColorPresentation
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ColorPresentation
[src]
impl PartialEq for ColorPresentation
fn eq(&self, other: &ColorPresentation) -> bool
[src]
fn eq(&self, other: &ColorPresentation) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ColorPresentation) -> bool
[src]
fn ne(&self, other: &ColorPresentation) -> bool
This method tests for !=
.
impl Eq for ColorPresentation
[src]
impl Eq for ColorPresentation
impl Default for ColorPresentation
[src]
impl Default for ColorPresentation
fn default() -> ColorPresentation
[src]
fn default() -> ColorPresentation
Returns the "default value" for a type. Read more
impl Clone for ColorPresentation
[src]
impl Clone for ColorPresentation
fn clone(&self) -> ColorPresentation
[src]
fn clone(&self) -> ColorPresentation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for ColorPresentation
impl Send for ColorPresentation
impl Sync for ColorPresentation
impl Sync for ColorPresentation