pub struct Origin {
pub run: RunId,
pub at_seq: Seq,
}Expand description
Where a session branched off: one run of this city, and the line in it that the branch starts after.
The pair has one home, and its older spelling stays where it is.
A run_forked record spells this same pair as {from, at_seq},
because a ledger already written cannot be re-spelled; a value this
build passes around is the type below. A reader holding a RunForked
builds an Origin from it rather than keeping both.
at_seq is the line itself and not the line after it: a branch
inherits through that line, and the safe point the rebuild settles on
is that value or an earlier one (runtime::fork::inherited_indexed).
Fields§
§run: RunIdThe run the branch came from.
at_seq: SeqThe last line of it the branch inherits.
Trait Implementations§
impl Copy for Origin
Source§impl<'de> Deserialize<'de> for Origin
impl<'de> Deserialize<'de> for Origin
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Origin
Source§impl Ord for Origin
impl Ord for Origin
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Origin
impl PartialOrd for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
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