pub struct TxInstants { /* private fields */ }Expand description
The t ↔ :db/txInstant correspondence for the transactions a value has
seen, in both directions.
Both maps are persistent, so carrying them on every database value costs
one O(log n) insert per transaction and nothing per clone. They are a
property of the recorded transactions rather than of a time view, so a
derived view (as-of, since, history) keeps the whole correspondence:
naming a view by instant means the same thing whatever view you start from.
:db/txInstant is monotone by construction (the transactor stamps
max(now, last + 1)), so ordering by instant and ordering by t agree.
Implementations§
Trait Implementations§
Source§impl Clone for TxInstants
impl Clone for TxInstants
Source§fn clone(&self) -> TxInstants
fn clone(&self) -> TxInstants
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 TxInstants
impl Debug for TxInstants
Source§impl Default for TxInstants
impl Default for TxInstants
Source§fn default() -> TxInstants
fn default() -> TxInstants
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TxInstants
impl RefUnwindSafe for TxInstants
impl Send for TxInstants
impl Sync for TxInstants
impl Unpin for TxInstants
impl UnsafeUnpin for TxInstants
impl UnwindSafe for TxInstants
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