Struct makepad_code_editor::history::History
source · pub struct History { /* private fields */ }
Implementations§
source§impl History
impl History
pub fn new() -> Self
pub fn as_text(&self) -> &Text
pub fn force_new_group(&mut self)
pub fn push_or_extend_group( &mut self, session_id: SessionId, edit_kind: EditKind, selections: &SelectionSet )
pub fn apply_edit(&mut self, edit: Edit)
pub fn undo( &mut self, selections: &SelectionSet, edits: &mut Vec<Edit> ) -> Option<SelectionSet>
pub fn redo( &mut self, selections: &SelectionSet, edits: &mut Vec<Edit> ) -> Option<SelectionSet>
pub fn into_text(self) -> Text
Trait Implementations§
source§impl PartialEq<History> for History
impl PartialEq<History> for History
impl Eq for History
impl StructuralEq for History
impl StructuralPartialEq for History
Auto Trait Implementations§
impl RefUnwindSafe for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnwindSafe for History
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