pub struct FingerprintBuilder<'a, W: WorkflowDefinition> { /* private fields */ }Expand description
Collects the states a fingerprint covers.
Implementations§
Source§impl<'a, W: WorkflowDefinition> FingerprintBuilder<'a, W>
impl<'a, W: WorkflowDefinition> FingerprintBuilder<'a, W>
Sourcepub fn at(self, name: impl Into<String>, state: Option<W::State>) -> Self
pub fn at(self, name: impl Into<String>, state: Option<W::State>) -> Self
Adds a state to pin, under a name a diff can refer to.
Choose states that mean something: the empty case, one obligation closed, the phase that raises a card, and each terminal outcome. A fingerprint over states nobody reaches pins nothing worth pinning.
Sourcepub fn build(self) -> ProjectionFingerprint
pub fn build(self) -> ProjectionFingerprint
Projects every state and reduces each view to its contract.
Trait Implementations§
Auto Trait Implementations§
impl<'a, W> Freeze for FingerprintBuilder<'a, W>
impl<'a, W> RefUnwindSafe for FingerprintBuilder<'a, W>
impl<'a, W> Send for FingerprintBuilder<'a, W>
impl<'a, W> Sync for FingerprintBuilder<'a, W>
impl<'a, W> Unpin for FingerprintBuilder<'a, W>
impl<'a, W> UnsafeUnpin for FingerprintBuilder<'a, W>
impl<'a, W> UnwindSafe for FingerprintBuilder<'a, W>
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