pub struct LinkedEditingRangeParams {
pub position: Position,
pub text_document: TextDocumentIdentifier,
pub work_done_token: Option<ProgressToken>,
}Fields§
§position: PositionThe position inside the text document.
text_document: TextDocumentIdentifierThe text document.
work_done_token: Option<ProgressToken>An optional token that a server can use to report work done progress.
Implementations§
Source§impl LinkedEditingRangeParams
impl LinkedEditingRangeParams
Sourcepub fn ret(result: Option<LinkedEditingRanges>) -> Option<LinkedEditingRanges>
pub fn ret(result: Option<LinkedEditingRanges>) -> Option<LinkedEditingRanges>
helper function for user do not need to remember result type of a request
Trait Implementations§
Source§impl Clone for LinkedEditingRangeParams
impl Clone for LinkedEditingRangeParams
Source§fn clone(&self) -> LinkedEditingRangeParams
fn clone(&self) -> LinkedEditingRangeParams
Returns a duplicate 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 LinkedEditingRangeParams
impl Debug for LinkedEditingRangeParams
Source§impl<'de> Deserialize<'de> for LinkedEditingRangeParams
impl<'de> Deserialize<'de> for LinkedEditingRangeParams
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 FromReq for LinkedEditingRangeParams
impl FromReq for LinkedEditingRangeParams
const METHOD: &'static str = "textDocument/linkedEditingRange"
type Ret = Option<LinkedEditingRanges>
Source§fn from_req(req: RequestMessage) -> OneOf<(ReqId, Self), RequestMessage>
fn from_req(req: RequestMessage) -> OneOf<(ReqId, Self), RequestMessage>
perform message cast from raw request message
if method do not match, return
OneOf::Other(request)Source§fn can_cast(req: &RequestMessage) -> bool
fn can_cast(req: &RequestMessage) -> bool
helper function to test method match or not
Source§impl PartialEq for LinkedEditingRangeParams
impl PartialEq for LinkedEditingRangeParams
Source§impl Serialize for LinkedEditingRangeParams
impl Serialize for LinkedEditingRangeParams
impl StructuralPartialEq for LinkedEditingRangeParams
Auto Trait Implementations§
impl Freeze for LinkedEditingRangeParams
impl RefUnwindSafe for LinkedEditingRangeParams
impl Send for LinkedEditingRangeParams
impl Sync for LinkedEditingRangeParams
impl Unpin for LinkedEditingRangeParams
impl UnwindSafe for LinkedEditingRangeParams
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