pub struct OcamlEffect {
pub name: String,
pub params: Vec<OcamlType>,
pub ret: OcamlType,
}Expand description
An OCaml 5.x effect declaration.
Fields§
§name: StringEffect name (e.g. “State”, “Async”, “Fail”).
params: Vec<OcamlType>Effect continuation type.
ret: OcamlTypeReturn type of the effect continuation.
Implementations§
Source§impl OcamlEffect
impl OcamlEffect
Trait Implementations§
Source§impl Clone for OcamlEffect
impl Clone for OcamlEffect
Source§fn clone(&self) -> OcamlEffect
fn clone(&self) -> OcamlEffect
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for OcamlEffect
impl RefUnwindSafe for OcamlEffect
impl Send for OcamlEffect
impl Sync for OcamlEffect
impl Unpin for OcamlEffect
impl UnsafeUnpin for OcamlEffect
impl UnwindSafe for OcamlEffect
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