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
sourceimpl TextDocumentPositionParams
impl TextDocumentPositionParams
pub fn new(
text_document: TextDocumentIdentifier,
position: Position
) -> TextDocumentPositionParams
Trait Implementations
sourceimpl Clone for TextDocumentPositionParams
impl Clone for TextDocumentPositionParams
sourcefn clone(&self) -> TextDocumentPositionParams
fn clone(&self) -> TextDocumentPositionParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TextDocumentPositionParams
impl Debug for TextDocumentPositionParams
sourceimpl<'de> Deserialize<'de> for TextDocumentPositionParams
impl<'de> Deserialize<'de> for TextDocumentPositionParams
sourcefn 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
sourceimpl PartialEq<TextDocumentPositionParams> for TextDocumentPositionParams
impl PartialEq<TextDocumentPositionParams> for TextDocumentPositionParams
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TextDocumentPositionParams) -> bool
fn ne(&self, other: &TextDocumentPositionParams) -> bool
This method tests for !=
.
impl Eq for TextDocumentPositionParams
impl StructuralEq for TextDocumentPositionParams
impl StructuralPartialEq for TextDocumentPositionParams
Auto Trait Implementations
impl RefUnwindSafe for TextDocumentPositionParams
impl Send for TextDocumentPositionParams
impl Sync for TextDocumentPositionParams
impl Unpin for TextDocumentPositionParams
impl UnwindSafe for TextDocumentPositionParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more