pub struct UndoGroupId(pub u64);Expand description
Groups transactions that undo together (ADR-0006 §6).
The unit the user thinks in: a run of typing is one group, and an accepted agent proposal is one group however many hunks it touched — so “accept, undo” undoes the agent’s change, not one insertion of it.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for UndoGroupId
impl Clone for UndoGroupId
Source§fn clone(&self) -> UndoGroupId
fn clone(&self) -> UndoGroupId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UndoGroupId
Source§impl Debug for UndoGroupId
impl Debug for UndoGroupId
Source§impl Default for UndoGroupId
impl Default for UndoGroupId
Source§fn default() -> UndoGroupId
fn default() -> UndoGroupId
Returns the “default value” for a type. Read more
impl Eq for UndoGroupId
Source§impl Hash for UndoGroupId
impl Hash for UndoGroupId
Source§impl Ord for UndoGroupId
impl Ord for UndoGroupId
Source§fn cmp(&self, other: &UndoGroupId) -> Ordering
fn cmp(&self, other: &UndoGroupId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UndoGroupId
impl PartialEq for UndoGroupId
Source§impl PartialOrd for UndoGroupId
impl PartialOrd for UndoGroupId
impl StructuralPartialEq for UndoGroupId
Auto Trait Implementations§
impl Freeze for UndoGroupId
impl RefUnwindSafe for UndoGroupId
impl Send for UndoGroupId
impl Sync for UndoGroupId
impl Unpin for UndoGroupId
impl UnsafeUnpin for UndoGroupId
impl UnwindSafe for UndoGroupId
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