Enum languageserver_types::TextDocumentSaveReason
[−]
[src]
pub enum TextDocumentSaveReason {
Manual,
AfterDelay,
FocusOut,
}Represents reasons why a text document is saved.
Variants
ManualManually triggered, e.g. by the user pressing save, by starting debugging, or by an API call.
AfterDelayAutomatic after a delay.
FocusOutWhen 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 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) -> bool1.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