Struct loro_internal::change::Change
source · pub struct Change<O = Op> { /* private fields */ }
Expand description
Implementations§
source§impl<O> Change<O>
impl<O> Change<O>
pub fn new( ops: RleVec<[O; 1]>, deps: Frontiers, id: ID, lamport: Lamport, timestamp: Timestamp ) -> Self
pub fn ops(&self) -> &RleVec<[O; 1]>
pub fn deps(&self) -> &Frontiers
pub fn peer(&self) -> PeerID
pub fn lamport(&self) -> Lamport
pub fn timestamp(&self) -> Timestamp
pub fn id(&self) -> ID
pub fn deps_on_self(&self) -> bool
Trait Implementations§
source§impl<O: Mergable + HasLength + HasIndex + Debug> HasLength for Change<O>
impl<O: Mergable + HasLength + HasIndex + Debug> HasLength for Change<O>
source§fn content_len(&self) -> usize
fn content_len(&self) -> usize
It is the length of the content, i.e. the length when no Mergable::merge ever happen. Read more
Auto Trait Implementations§
impl<O> Freeze for Change<O>where
O: Freeze,
impl<O> RefUnwindSafe for Change<O>where
O: RefUnwindSafe,
impl<O> Send for Change<O>where
O: Send,
impl<O> Sync for Change<O>where
O: Sync,
impl<O> Unpin for Change<O>where
O: Unpin,
impl<O> UnwindSafe for Change<O>where
O: RefUnwindSafe + UnwindSafe,
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
source§impl<T> HasCounterSpan for Twhere
T: HasCounter + HasLength,
impl<T> HasCounterSpan for Twhere
T: HasCounter + HasLength,
source§impl<T> HasIdSpan for T
impl<T> HasIdSpan for T
source§impl<T> HasLamportSpan for Twhere
T: HasLamport + HasLength,
impl<T> HasLamportSpan for Twhere
T: HasLamport + HasLength,
source§fn lamport_end(&self) -> u32
fn lamport_end(&self) -> u32
end is the exclusive end, last the inclusive end.
source§fn lamport_last(&self) -> u32
fn lamport_last(&self) -> u32
end is the exclusive end, last the inclusive end.