pub struct HandlerClause {
pub operation_name: String,
pub parameter_names: Vec<String>,
pub body: Vec<FlowStep>,
pub loc: Loc,
}Expand description
One clause of a HandleBlock: Emit(token) -> { … }.
Fields§
§operation_name: String§parameter_names: Vec<String>The clause’s binders. perform Emit(x)’s argument is bound under the
clause’s parameter name for the duration of the clause body — the same
discipline EffectRuntime::dispatch_clause_for uses (save, bind,
restore), so a clause cannot leak a binding into its continuation.
body: Vec<FlowStep>§loc: LocTrait Implementations§
Auto Trait Implementations§
impl Freeze for HandlerClause
impl RefUnwindSafe for HandlerClause
impl Send for HandlerClause
impl Sync for HandlerClause
impl Unpin for HandlerClause
impl UnsafeUnpin for HandlerClause
impl UnwindSafe for HandlerClause
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