Struct zed2::languages::UndoOperation
source · pub struct UndoOperation {
pub timestamp: Lamport,
pub version: Global,
pub counts: HashMap<Lamport, u32, RandomState>,
}
Fields§
§timestamp: Lamport
§version: Global
§counts: HashMap<Lamport, u32, RandomState>
Trait Implementations§
source§impl Clone for UndoOperation
impl Clone for UndoOperation
source§fn clone(&self) -> UndoOperation
fn clone(&self) -> UndoOperation
Returns a copy 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 moresource§impl Debug for UndoOperation
impl Debug for UndoOperation
source§impl PartialEq<UndoOperation> for UndoOperation
impl PartialEq<UndoOperation> for UndoOperation
source§fn eq(&self, other: &UndoOperation) -> bool
fn eq(&self, other: &UndoOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UndoOperation
impl StructuralEq for UndoOperation
impl StructuralPartialEq for UndoOperation
Auto Trait Implementations§
impl RefUnwindSafe for UndoOperation
impl Send for UndoOperation
impl Sync for UndoOperation
impl Unpin for UndoOperation
impl UnwindSafe for UndoOperation
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.