enum ReturnContextBehavior {
Normal(ReturnContext),
Loop,
}
Expand description
Simple enum to specify how to calculate the return context
Variants§
Normal(ReturnContext)
Simple uses the specified return context
Loop
Creates a ReturnContext::Specific(..)
with the current context as parameter
Trait Implementations§
source§impl Clone for ReturnContextBehavior
impl Clone for ReturnContextBehavior
source§fn clone(&self) -> ReturnContextBehavior
fn clone(&self) -> ReturnContextBehavior
Returns a copy 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 From<ReturnContext> for ReturnContextBehavior
impl From<ReturnContext> for ReturnContextBehavior
source§fn from(return_context: ReturnContext) -> Self
fn from(return_context: ReturnContext) -> Self
Converts to this type from the input type.
impl Copy for ReturnContextBehavior
Auto Trait Implementations§
impl RefUnwindSafe for ReturnContextBehavior
impl Send for ReturnContextBehavior
impl Sync for ReturnContextBehavior
impl Unpin for ReturnContextBehavior
impl UnwindSafe for ReturnContextBehavior
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