pub struct Machine<R> { /* private fields */ }Implementations§
Source§impl<R: ClarifiedCerrMerging + 'static> Machine<R>
impl<R: ClarifiedCerrMerging + 'static> Machine<R>
pub fn big_red_and_btn( self, ) -> Either<Result<Result<(R, MachineMeta), cerr>, FatalError>, UnfinishedMachine<R>> ⓘ
Source§impl<R> Machine<R>
impl<R> Machine<R>
pub fn with_action(self, action: RuntimeAction) -> Self
Sourcepub fn require_features(self, required_features: Features) -> Self
pub fn require_features(self, required_features: Features) -> Self
Add extra features that need to be enabled for the current expression to be usable. Already present features will be ignored (bitwise or)
pub fn from_final(v: R) -> Self
Source§impl<R: ClarifiedCerrMerging + 'static> Machine<R>
impl<R: ClarifiedCerrMerging + 'static> Machine<R>
pub fn maybe_merge_catchable(self) -> Self
Sourcepub fn query<U>(
self,
closure: impl FnOnce(R) -> Machine<U> + 'static + Send,
) -> Machine<U>
pub fn query<U>( self, closure: impl FnOnce(R) -> Machine<U> + 'static + Send, ) -> Machine<U>
Alias of Self::and_then
pub fn and_then<U>( self, closure: impl FnOnce(R) -> Machine<U> + 'static + Send, ) -> Machine<U>
pub fn map<U>(self, closure: impl FnOnce(R) -> U + 'static + Send) -> Machine<U>
Source§impl<R: From<cerr>> Machine<R>
impl<R: From<cerr>> Machine<R>
Sourcepub fn merge_catchables(self) -> Self
pub fn merge_catchables(self) -> Self
Types that can wrap cerr offer a second place inside Machine
where errors can be stored. This method ensures that all catchable
errors are stored as part of the main value and not in the Machine-specific
variant for errors that exist for all wrapped types. This ensures
that closures that explicitly want to process errors, still see all errors.
This method is only available if the operation is useful, see Machine::maybe_merge_catchable
for a version that works on more types.
Trait Implementations§
Source§impl<R> From<FatalError> for Machine<R>
impl<R> From<FatalError> for Machine<R>
Source§fn from(err: FatalError) -> Machine<R>
fn from(err: FatalError) -> Machine<R>
Converts to this type from the input type.
Auto Trait Implementations§
impl<R> !RefUnwindSafe for Machine<R>
impl<R> !Sync for Machine<R>
impl<R> !UnwindSafe for Machine<R>
impl<R> Freeze for Machine<R>where
R: Freeze,
impl<R> Send for Machine<R>where
R: Send,
impl<R> Unpin for Machine<R>where
R: Unpin,
impl<R> UnsafeUnpin for Machine<R>where
R: UnsafeUnpin,
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> 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