pub struct FoldResult {
pub head: Option<usize>,
pub gap: bool,
pub anchored: bool,
}Expand description
The outcome of folding one entity’s editions.
Fields§
§head: Option<usize>Index (into the input slice) of the chosen head edition, or None if nothing ≥ floor.
gap: boolA higher version exists but doesn’t link contiguously to the head — withheld prereqs. The caller fails CLOSED for the entity (suspends its authority) and refetches (H1/M8).
anchored: boolThe BASE anchor test passed: the lowest ≥-floor edition is a genesis, our exact held floor
edition, or chains directly to it. When true, head is a chain-verified extension of the
committed floor even if gap flags withheld versions ABOVE it — adopting that verified
prefix is sound (refuse-downgrade holds). When false, head is unanchored: do not adopt.
Trait Implementations§
Source§impl Clone for FoldResult
impl Clone for FoldResult
Source§fn clone(&self) -> FoldResult
fn clone(&self) -> FoldResult
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 FoldResult
impl Debug for FoldResult
impl Eq for FoldResult
Source§impl PartialEq for FoldResult
impl PartialEq for FoldResult
impl StructuralPartialEq for FoldResult
Auto Trait Implementations§
impl Freeze for FoldResult
impl RefUnwindSafe for FoldResult
impl Send for FoldResult
impl Sync for FoldResult
impl Unpin for FoldResult
impl UnsafeUnpin for FoldResult
impl UnwindSafe for FoldResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more