pub struct FlowAnswers { /* private fields */ }Expand description
Results from one ask, read through typed operators.
Implementations§
Source§impl FlowAnswers
impl FlowAnswers
Sourcepub fn peek<Q: TypedQuestion>(
&self,
operator: &Operator<Q>,
) -> Result<Answer<Q::Output>>
pub fn peek<Q: TypedQuestion>( &self, operator: &Operator<Q>, ) -> Result<Answer<Q::Output>>
Inspect a typed answer without stopping on uncertainty.
§Errors
Returns an error if the operator is absent, its question does not match the retained answer, or conversion to its output type fails.
Sourcepub fn require<Q: TypedQuestion>(
&self,
operator: &Operator<Q>,
) -> Result<Q::Output, FlowExit>
pub fn require<Q: TypedQuestion>( &self, operator: &Operator<Q>, ) -> Result<Q::Output, FlowExit>
Read a typed value or return an uncertainty stop.
§Errors
Returns FlowExit::Undecided when the answer has no decision. Missing
operators, incompatible answers, and conversion failures become
FlowExit::Error.
Trait Implementations§
Source§impl Clone for FlowAnswers
impl Clone for FlowAnswers
Auto Trait Implementations§
impl Freeze for FlowAnswers
impl RefUnwindSafe for FlowAnswers
impl Send for FlowAnswers
impl Sync for FlowAnswers
impl Unpin for FlowAnswers
impl UnsafeUnpin for FlowAnswers
impl UnwindSafe for FlowAnswers
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