pub enum ProcessingEdit {
ReplaceStyleLayer {
layer: StyleLayerId,
intervals: Vec<Interval>,
},
ClearStyleLayer {
layer: StyleLayerId,
},
ReplaceFoldingRegions {
regions: Vec<FoldRegion>,
preserve_collapsed: bool,
},
ClearFoldingRegions,
ReplaceDiagnostics {
diagnostics: Vec<Diagnostic>,
},
ClearDiagnostics,
ReplaceDecorations {
layer: DecorationLayerId,
decorations: Vec<Decoration>,
},
ClearDecorations {
layer: DecorationLayerId,
},
}Expand description
A change to derived editor state (highlighting, folding, etc.).
Variants§
ReplaceStyleLayer
Replace an entire style layer with the given intervals (char offsets).
Fields
§
layer: StyleLayerIdThe style layer being replaced.
ClearStyleLayer
Clear a style layer.
Fields
§
layer: StyleLayerIdThe style layer being cleared.
ReplaceFoldingRegions
Replace folding regions.
If preserve_collapsed is true, regions that match an existing collapsed region
(start_line, end_line) will remain collapsed after replacement.
Fields
§
regions: Vec<FoldRegion>The complete set of folding regions.
ClearFoldingRegions
Clear all folding regions.
ReplaceDiagnostics
Replace the current diagnostic list (character offsets).
Fields
§
diagnostics: Vec<Diagnostic>Full diagnostic list for the document.
ClearDiagnostics
Clear all diagnostics.
ReplaceDecorations
Replace a decoration layer wholesale.
Fields
§
layer: DecorationLayerIdDecoration layer being replaced.
§
decorations: Vec<Decoration>Full decoration list for the layer (character offsets).
ClearDecorations
Clear a decoration layer.
Fields
§
layer: DecorationLayerIdDecoration layer being cleared.
Trait Implementations§
Source§impl Clone for ProcessingEdit
impl Clone for ProcessingEdit
Source§fn clone(&self) -> ProcessingEdit
fn clone(&self) -> ProcessingEdit
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 moreAuto Trait Implementations§
impl Freeze for ProcessingEdit
impl RefUnwindSafe for ProcessingEdit
impl Send for ProcessingEdit
impl Sync for ProcessingEdit
impl Unpin for ProcessingEdit
impl UnsafeUnpin for ProcessingEdit
impl UnwindSafe for ProcessingEdit
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