pub struct EffectOperation {
pub name: String,
pub parameters: Vec<Parameter>,
pub return_type: String,
pub loc: Loc,
}Expand description
One operation inside an effect declaration: Emit(token: Token) -> Unit.
Fields§
§name: String§parameters: Vec<Parameter>§return_type: StringThe declared return type. Never is the bottom sentinel fase_23 §3.1
writes on Done() -> Never — an operation whose handler is not expected
to resume. Empty when the source omits -> T.
loc: LocTrait Implementations§
Auto Trait Implementations§
impl Freeze for EffectOperation
impl RefUnwindSafe for EffectOperation
impl Send for EffectOperation
impl Sync for EffectOperation
impl Unpin for EffectOperation
impl UnsafeUnpin for EffectOperation
impl UnwindSafe for EffectOperation
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