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]
impl Clone for TextDocumentSaveReasonfn clone(&self) -> TextDocumentSaveReason[src]
fn clone(&self) -> TextDocumentSaveReasonReturns 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 TextDocumentSaveReasonimpl Debug for TextDocumentSaveReason[src]
impl Debug for TextDocumentSaveReasonfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for TextDocumentSaveReason[src]
impl Eq for TextDocumentSaveReasonimpl PartialEq for TextDocumentSaveReason[src]
impl PartialEq for TextDocumentSaveReasonfn eq(&self, other: &TextDocumentSaveReason) -> bool[src]
fn eq(&self, other: &TextDocumentSaveReason) -> boolThis 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]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl<'de> Deserialize<'de> for TextDocumentSaveReason[src]
impl<'de> Deserialize<'de> for TextDocumentSaveReasonfn 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 TextDocumentSaveReasonAuto Trait Implementations
impl Send for TextDocumentSaveReason
impl Send for TextDocumentSaveReasonimpl Sync for TextDocumentSaveReason
impl Sync for TextDocumentSaveReason