Struct ditto::map::Op
[−]
[src]
pub struct Op<K, V> { /* fields omitted */ }
Methods
impl<K: Key, V: Value> Op<K, V>
[src]
pub fn key(&self) -> &K
[src]
Returns the Op
's key.
pub fn inserted_element(&self) -> Option<&Element<V>>
[src]
Returns a reference to the Op
's inserted element.
pub fn removed_dots(&self) -> &[Dot]
[src]
Returns a reference to the Op
's removed dots.
pub fn add_site_id(&mut self, site_id: SiteId)
[src]
Assigns a site id to any unassigned inserts and removes
pub fn validate(&self, site_id: SiteId) -> Result<(), Error>
[src]
Validates that the Op
's site id is equal to the given site id.
Trait Implementations
impl<K: Debug, V: Debug> Debug for Op<K, V>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<K: Clone, V: Clone> Clone for Op<K, V>
[src]
fn clone(&self) -> Op<K, V>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more