Struct ditto::set::Op
[−]
[src]
pub struct Op<T> { /* fields omitted */ }
Methods
impl<T: SetElement> Op<T>
[src]
pub fn value(&self) -> &T
[src]
Returns the Op
's value.
pub fn inserted_dot(&self) -> Option<Dot>
[src]
Returns a reference to the Op
's inserted dot.
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<T: Debug> Debug for Op<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Clone> Clone for Op<T>
[src]
fn clone(&self) -> Op<T>
[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