Enum languageserver_types::TextDocumentSaveReason
[−]
[src]
pub enum TextDocumentSaveReason { Manual, AfterDelay, FocusOut, }
Represents reasons why a text document is saved.
Variants
Manual
Manually triggered, e.g. by the user pressing save, by starting debugging, or by an API call.
AfterDelay
Automatic after a delay.
FocusOut
When the editor lost focus.
Trait Implementations
impl Clone for TextDocumentSaveReason
[src]
fn clone(&self) -> TextDocumentSaveReason
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for TextDocumentSaveReason
[src]
impl Debug for TextDocumentSaveReason
[src]
impl Eq for TextDocumentSaveReason
[src]
impl PartialEq for TextDocumentSaveReason
[src]
fn eq(&self, __arg_0: &TextDocumentSaveReason) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'de> Deserialize<'de> for TextDocumentSaveReason
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more