pub enum Interpretation<Settlement> {
Complete(Settlement),
Corrupt(Settlement),
}Expand description
Completion state of one total static product traversal.
Both variants own the complete settlement shape. Corrupt contains the
factual committed prefix, the exact corrupt item, and every later item as
SettledItem::Unattempted.
Variants§
Implementations§
Source§impl<Settlement> Interpretation<Settlement>
impl<Settlement> Interpretation<Settlement>
Sourcepub fn map<Mapped>(
self,
map: impl FnOnce(Settlement) -> Mapped,
) -> Interpretation<Mapped>
pub fn map<Mapped>( self, map: impl FnOnce(Settlement) -> Mapped, ) -> Interpretation<Mapped>
Transform the complete settlement shape without changing whether the interpreter completed or corrupted.
Sourcepub fn into_settlement(self) -> Settlement
pub fn into_settlement(self) -> Settlement
Recover the complete owned settlement shape.
Trait Implementations§
Source§impl<Settlement> ClassifySettlement for Interpretation<Settlement>where
Settlement: ClassifySettlement,
impl<Settlement> ClassifySettlement for Interpretation<Settlement>where
Settlement: ClassifySettlement,
Source§fn settlement_status(&self) -> SettlementStatus
fn settlement_status(&self) -> SettlementStatus
Inspect every member without consuming or rewriting the settlement.
Source§impl<Settlement: Clone> Clone for Interpretation<Settlement>
impl<Settlement: Clone> Clone for Interpretation<Settlement>
Source§fn clone(&self) -> Interpretation<Settlement>
fn clone(&self) -> Interpretation<Settlement>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Settlement: Debug> Debug for Interpretation<Settlement>
impl<Settlement: Debug> Debug for Interpretation<Settlement>
Source§impl<Settlement: PartialEq> PartialEq for Interpretation<Settlement>
impl<Settlement: PartialEq> PartialEq for Interpretation<Settlement>
impl<Settlement: Copy> Copy for Interpretation<Settlement>
impl<Settlement: Eq> Eq for Interpretation<Settlement>
impl<Settlement> StructuralPartialEq for Interpretation<Settlement>
Auto Trait Implementations§
impl<Settlement> Freeze for Interpretation<Settlement>where
Settlement: Freeze,
impl<Settlement> RefUnwindSafe for Interpretation<Settlement>where
Settlement: RefUnwindSafe,
impl<Settlement> Send for Interpretation<Settlement>where
Settlement: Send,
impl<Settlement> Sync for Interpretation<Settlement>where
Settlement: Sync,
impl<Settlement> Unpin for Interpretation<Settlement>where
Settlement: Unpin,
impl<Settlement> UnsafeUnpin for Interpretation<Settlement>where
Settlement: UnsafeUnpin,
impl<Settlement> UnwindSafe for Interpretation<Settlement>where
Settlement: UnwindSafe,
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