pub struct FormatDocumentResult {
pub edits: Vec<TextEdit>,
pub positions_degraded: bool,
}Expand description
Result of a format document request.
Fields§
§edits: Vec<TextEdit>List of edits to format the document.
positions_degraded: boolWhether a position in this response could not be resolved for
encoding conversion – disk-read budget exhaustion, an unresolvable
server-supplied path, a line past EOF, or invalid UTF-8 content can
each cause this – meaning some edits ranges’ character values may be
wrong for a non-UTF-16 LSP server (#497). Omitted (defaults to
false) when serialized.
Trait Implementations§
Source§impl Clone for FormatDocumentResult
impl Clone for FormatDocumentResult
Source§impl Debug for FormatDocumentResult
impl Debug for FormatDocumentResult
Source§impl<'de> Deserialize<'de> for FormatDocumentResult
impl<'de> Deserialize<'de> for FormatDocumentResult
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
Auto Trait Implementations§
impl Freeze for FormatDocumentResult
impl RefUnwindSafe for FormatDocumentResult
impl Send for FormatDocumentResult
impl Sync for FormatDocumentResult
impl Unpin for FormatDocumentResult
impl UnsafeUnpin for FormatDocumentResult
impl UnwindSafe for FormatDocumentResult
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