[−][src]Struct tamasfe_lsp_types::OptionalVersionedTextDocumentIdentifier
An identifier which optionally denotes a specific version of a text document. This information usually flows from the server to the client
Fields
uri: Url
The text document's URI.
version: Option<i32>
The version number of this document. If an optional versioned text document
identifier is sent from the server to the client and the file is not
open in the editor (the server has not received an open notification
before) the server can send null
to indicate that the version is
known and the content on disk is the master (as specified with document
content ownership).
The version number of a document will increase after each change, including undo/redo. The number doesn't need to be consecutive.
Implementations
impl OptionalVersionedTextDocumentIdentifier
[src]
pub fn new(uri: Url, version: i32) -> OptionalVersionedTextDocumentIdentifier
[src]
Trait Implementations
impl Clone for OptionalVersionedTextDocumentIdentifier
[src]
pub fn clone(&self) -> OptionalVersionedTextDocumentIdentifier
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OptionalVersionedTextDocumentIdentifier
[src]
impl<'de> Deserialize<'de> for OptionalVersionedTextDocumentIdentifier
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for OptionalVersionedTextDocumentIdentifier
[src]
impl PartialEq<OptionalVersionedTextDocumentIdentifier> for OptionalVersionedTextDocumentIdentifier
[src]
pub fn eq(&self, other: &OptionalVersionedTextDocumentIdentifier) -> bool
[src]
pub fn ne(&self, other: &OptionalVersionedTextDocumentIdentifier) -> bool
[src]
impl Serialize for OptionalVersionedTextDocumentIdentifier
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for OptionalVersionedTextDocumentIdentifier
[src]
impl StructuralPartialEq for OptionalVersionedTextDocumentIdentifier
[src]
Auto Trait Implementations
impl RefUnwindSafe for OptionalVersionedTextDocumentIdentifier
impl Send for OptionalVersionedTextDocumentIdentifier
impl Sync for OptionalVersionedTextDocumentIdentifier
impl Unpin for OptionalVersionedTextDocumentIdentifier
impl UnwindSafe for OptionalVersionedTextDocumentIdentifier
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,