pub struct DocumentRangeFormattingOptions {
pub ranges_support: Option<bool>,
pub work_done_progress_options: WorkDoneProgressOptions,
}Expand description
Provider options for a DocumentRangeFormattingRequest.
Fields§
§ranges_support: Option<bool>Whether the server supports formatting multiple ranges at once.
@since 3.18.0 @proposed
work_done_progress_options: WorkDoneProgressOptionsImplementations§
Source§impl DocumentRangeFormattingOptions
impl DocumentRangeFormattingOptions
pub const fn new( ranges_support: Option<bool>, work_done_progress_options: WorkDoneProgressOptions, ) -> Self
Trait Implementations§
Source§impl Clone for DocumentRangeFormattingOptions
impl Clone for DocumentRangeFormattingOptions
Source§fn clone(&self) -> DocumentRangeFormattingOptions
fn clone(&self) -> DocumentRangeFormattingOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DocumentRangeFormattingOptions
impl Default for DocumentRangeFormattingOptions
Source§fn default() -> DocumentRangeFormattingOptions
fn default() -> DocumentRangeFormattingOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentRangeFormattingOptions
impl<'de> Deserialize<'de> for DocumentRangeFormattingOptions
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 From<DocumentRangeFormattingOptions> for DocumentRangeFormattingProvider
impl From<DocumentRangeFormattingOptions> for DocumentRangeFormattingProvider
Source§fn from(v: DocumentRangeFormattingOptions) -> Self
fn from(v: DocumentRangeFormattingOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DocumentRangeFormattingOptions
impl PartialEq for DocumentRangeFormattingOptions
Source§fn eq(&self, other: &DocumentRangeFormattingOptions) -> bool
fn eq(&self, other: &DocumentRangeFormattingOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DocumentRangeFormattingOptions
impl Eq for DocumentRangeFormattingOptions
impl StructuralPartialEq for DocumentRangeFormattingOptions
Auto Trait Implementations§
impl Freeze for DocumentRangeFormattingOptions
impl RefUnwindSafe for DocumentRangeFormattingOptions
impl Send for DocumentRangeFormattingOptions
impl Sync for DocumentRangeFormattingOptions
impl Unpin for DocumentRangeFormattingOptions
impl UnsafeUnpin for DocumentRangeFormattingOptions
impl UnwindSafe for DocumentRangeFormattingOptions
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