Struct dittolive_ditto::store::query_builder::DittoMutableCounter
source · pub struct DittoMutableCounter<'doc> { /* private fields */ }
Expand description
Use doc.get_mut::<DittoMutableCounter>("...")
to obtain a mutable CRDT counter.
A mutable CRDT counter that can be incremented while updating a document.
Implementations§
Trait Implementations§
source§impl<'doc> MutableValue<'doc> for DittoMutableCounter<'doc>
impl<'doc> MutableValue<'doc> for DittoMutableCounter<'doc>
type BaseType = DittoCounter
fn mutable_version( base: Self::BaseType, document: &'doc mut Document, path: Box, ) -> Result<Self>
Auto Trait Implementations§
impl<'doc> Freeze for DittoMutableCounter<'doc>
impl<'doc> RefUnwindSafe for DittoMutableCounter<'doc>
impl<'doc> Send for DittoMutableCounter<'doc>
impl<'doc> Sync for DittoMutableCounter<'doc>
impl<'doc> Unpin for DittoMutableCounter<'doc>
impl<'doc> !UnwindSafe for DittoMutableCounter<'doc>
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