pub struct DocumentRangeFormattingParams {
pub options: FormattingOptions,
pub range: Range,
pub text_document: TextDocumentIdentifier,
pub work_done_token: Option<ProgressToken>,
}Fields§
§options: FormattingOptionsThe format options
range: RangeThe range to format
text_document: TextDocumentIdentifierThe document to format.
work_done_token: Option<ProgressToken>An optional token that a server can use to report work done progress.
Implementations§
Trait Implementations§
Source§impl Clone for DocumentRangeFormattingParams
impl Clone for DocumentRangeFormattingParams
Source§fn clone(&self) -> DocumentRangeFormattingParams
fn clone(&self) -> DocumentRangeFormattingParams
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<'de> Deserialize<'de> for DocumentRangeFormattingParams
impl<'de> Deserialize<'de> for DocumentRangeFormattingParams
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 DocumentRangeFormattingParams
impl FromReq for DocumentRangeFormattingParams
const METHOD: &'static str = "DocumentRangeFormattingParams"
type Ret = Vec<TextEdit>
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 DocumentRangeFormattingParams
impl PartialEq for DocumentRangeFormattingParams
Source§fn eq(&self, other: &DocumentRangeFormattingParams) -> bool
fn eq(&self, other: &DocumentRangeFormattingParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DocumentRangeFormattingParams
Auto Trait Implementations§
impl Freeze for DocumentRangeFormattingParams
impl RefUnwindSafe for DocumentRangeFormattingParams
impl Send for DocumentRangeFormattingParams
impl Sync for DocumentRangeFormattingParams
impl Unpin for DocumentRangeFormattingParams
impl UnwindSafe for DocumentRangeFormattingParams
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