pub enum VersionRef {
Head,
Back(u64),
Tick(i64),
Time(f64),
}Expand description
A version of the store, as users name it.
Variants§
Head
The latest tick (HEAD, main).
Back(u64)
n commits before the latest (HEAD~n, main~n, ~n).
Tick(i64)
A tick number (#42, 42).
Time(f64)
The state at an instant (@2026-09-01T12:00:00Z, HEAD@…, main@…), in seconds since
the epoch.
Trait Implementations§
Source§impl Clone for VersionRef
impl Clone for VersionRef
Source§fn clone(&self) -> VersionRef
fn clone(&self) -> VersionRef
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 VersionRef
impl Debug for VersionRef
Source§impl Display for VersionRef
impl Display for VersionRef
Source§impl FromStr for VersionRef
impl FromStr for VersionRef
Source§impl PartialEq for VersionRef
impl PartialEq for VersionRef
impl StructuralPartialEq for VersionRef
Auto Trait Implementations§
impl Freeze for VersionRef
impl RefUnwindSafe for VersionRef
impl Send for VersionRef
impl Sync for VersionRef
impl Unpin for VersionRef
impl UnsafeUnpin for VersionRef
impl UnwindSafe for VersionRef
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