pub struct EditorState {
pub document: DocumentState,
pub cursor: CursorState,
pub viewport: ViewportState,
pub undo_redo: UndoRedoState,
pub folding: FoldingState,
pub diagnostics: DiagnosticsState,
pub decorations: DecorationsState,
pub style: StyleState,
}Expand description
Complete editor state snapshot
Fields§
§document: DocumentStateDocument state
cursor: CursorStateCursor state
viewport: ViewportStateViewport state
undo_redo: UndoRedoStateUndo/redo state
folding: FoldingStateFolding state
diagnostics: DiagnosticsStateDiagnostics state
decorations: DecorationsStateDecorations state
style: StyleStateStyle state
Trait Implementations§
Source§impl Clone for EditorState
impl Clone for EditorState
Auto Trait Implementations§
impl Forget for EditorState
impl Freeze for EditorStatewhere
*const u8 is !null: Freeze,
PhantomData<Position>: Freeze,
PhantomData<Selection>: Freeze,
PhantomData<FoldRegion>: Freeze,
impl Move for EditorState
impl RefUnwindSafe for EditorState
impl Send for EditorStatewhere
RawVecInner: Send,
impl Sync for EditorStatewhere
RawVecInner: Sync,
impl Unpin for EditorState
impl UnsafeUnpin for EditorStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Position>: UnsafeUnpin,
PhantomData<Selection>: UnsafeUnpin,
PhantomData<FoldRegion>: UnsafeUnpin,
impl UnwindSafe for EditorStatewhere
RawVecInner: UnwindSafe,
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