pub struct RevisionEvent { /* private fields */ }Expand description
One deterministically ordered semantic event within a revision.
Implementations§
Source§impl RevisionEvent
impl RevisionEvent
Sourcepub const fn new(
revision_id: RevisionId,
position: u32,
kind: RevisionEventKind,
) -> Self
pub const fn new( revision_id: RevisionId, position: u32, kind: RevisionEventKind, ) -> Self
Creates an event at its stable zero-based revision position.
Sourcepub const fn revision_id(&self) -> RevisionId
pub const fn revision_id(&self) -> RevisionId
Returns the revision that owns the event.
Sourcepub const fn position(&self) -> u32
pub const fn position(&self) -> u32
Returns the zero-based stable position within the revision.
Sourcepub const fn kind(&self) -> &RevisionEventKind
pub const fn kind(&self) -> &RevisionEventKind
Returns the semantic mutation payload.
Trait Implementations§
Source§impl Clone for RevisionEvent
impl Clone for RevisionEvent
Source§fn clone(&self) -> RevisionEvent
fn clone(&self) -> RevisionEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RevisionEvent
impl Debug for RevisionEvent
impl Eq for RevisionEvent
Source§impl PartialEq for RevisionEvent
impl PartialEq for RevisionEvent
Source§fn eq(&self, other: &RevisionEvent) -> bool
fn eq(&self, other: &RevisionEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RevisionEvent
Auto Trait Implementations§
impl Freeze for RevisionEvent
impl RefUnwindSafe for RevisionEvent
impl Send for RevisionEvent
impl Sync for RevisionEvent
impl Unpin for RevisionEvent
impl UnsafeUnpin for RevisionEvent
impl UnwindSafe for RevisionEvent
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