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]
impl Clone for TextDocumentSaveReason
fn clone(&self) -> TextDocumentSaveReason
[src]
fn clone(&self) -> TextDocumentSaveReason
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
impl Copy for TextDocumentSaveReason
[src]
impl Copy for TextDocumentSaveReason
impl Debug for TextDocumentSaveReason
[src]
impl Debug for TextDocumentSaveReason
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 Eq for TextDocumentSaveReason
[src]
impl Eq for TextDocumentSaveReason
impl PartialEq for TextDocumentSaveReason
[src]
impl PartialEq for TextDocumentSaveReason
fn eq(&self, other: &TextDocumentSaveReason) -> bool
[src]
fn eq(&self, other: &TextDocumentSaveReason) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl<'de> Deserialize<'de> for TextDocumentSaveReason
[src]
impl<'de> Deserialize<'de> for TextDocumentSaveReason
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for TextDocumentSaveReason
[src]
impl Serialize for TextDocumentSaveReason
Auto Trait Implementations
impl Send for TextDocumentSaveReason
impl Send for TextDocumentSaveReason
impl Sync for TextDocumentSaveReason
impl Sync for TextDocumentSaveReason