pub struct EditorState {
pub document: DocumentState,
pub cursor: CursorState,
pub viewport: ViewportState,
pub undo_redo: UndoRedoState,
pub folding: FoldingState,
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
style: StyleStateStyle state
Trait Implementations§
Source§impl Clone for EditorState
impl Clone for EditorState
Source§fn clone(&self) -> EditorState
fn clone(&self) -> EditorState
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 EditorState
impl RefUnwindSafe for EditorState
impl Send for EditorState
impl Sync for EditorState
impl Unpin for EditorState
impl UnwindSafe for EditorState
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