Struct ditto::register::Op
[−]
[src]
pub struct Op<T: Clone> { /* fields omitted */ }
Methods
impl<T: Clone> Op<T>
[src]
pub fn site_id(&self) -> SiteId
[src]
Returns the Op
's site_id
pub fn counter(&self) -> Counter
[src]
Returns the Op
's counter
pub fn value(&self) -> &T
[src]
Returns a reference to the Op
's value
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 new site id to the Op
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 + Clone> 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> 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