Struct lsp_types::TextDocumentPositionParams
source · pub struct TextDocumentPositionParams {
pub text_document: TextDocumentIdentifier,
pub position: Position,
}
Expand description
A parameter literal used in requests to pass a text document and a position inside that document.
Fields§
§text_document: TextDocumentIdentifier
The text document.
position: Position
The position inside the text document.
Implementations§
source§impl TextDocumentPositionParams
impl TextDocumentPositionParams
pub fn new( text_document: TextDocumentIdentifier, position: Position ) -> TextDocumentPositionParams
Trait Implementations§
source§impl Clone for TextDocumentPositionParams
impl Clone for TextDocumentPositionParams
source§fn clone(&self) -> TextDocumentPositionParams
fn clone(&self) -> TextDocumentPositionParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TextDocumentPositionParams
impl Debug for TextDocumentPositionParams
source§impl<'de> Deserialize<'de> for TextDocumentPositionParams
impl<'de> Deserialize<'de> for TextDocumentPositionParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TextDocumentPositionParams
impl PartialEq for TextDocumentPositionParams
source§fn eq(&self, other: &TextDocumentPositionParams) -> bool
fn eq(&self, other: &TextDocumentPositionParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TextDocumentPositionParams
impl StructuralPartialEq for TextDocumentPositionParams
Auto Trait Implementations§
impl Freeze for TextDocumentPositionParams
impl RefUnwindSafe for TextDocumentPositionParams
impl Send for TextDocumentPositionParams
impl Sync for TextDocumentPositionParams
impl Unpin for TextDocumentPositionParams
impl UnwindSafe for TextDocumentPositionParams
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more