pub struct Revision { /* private fields */ }Expand description
An authored revision in a strictly linear history.
Implementations§
Source§impl Revision
impl Revision
Sourcepub fn new(
id: RelationId,
parent: Option<RelationId>,
target: RelationId,
operations: Vec<Operation>,
) -> Self
pub fn new( id: RelationId, parent: Option<RelationId>, target: RelationId, operations: Vec<Operation>, ) -> Self
Creates a revision with a stable caller-issued id, exact parent, target, and ordered operations.
Sourcepub fn id(&self) -> &RelationId
pub fn id(&self) -> &RelationId
Revision identity.
Sourcepub fn parent(&self) -> Option<&RelationId>
pub fn parent(&self) -> Option<&RelationId>
Exact predecessor revision.
Sourcepub fn target(&self) -> &RelationId
pub fn target(&self) -> &RelationId
Declared logical target.
Sourcepub fn operations(&self) -> &[Operation]
pub fn operations(&self) -> &[Operation]
Ordered operations.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Revision
impl RefUnwindSafe for Revision
impl Send for Revision
impl Sync for Revision
impl Unpin for Revision
impl UnsafeUnpin for Revision
impl UnwindSafe for Revision
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