pub struct EffectSystem {
pub name: String,
pub effect_types: Vec<String>,
pub is_algebraic: bool,
pub monad_based: bool,
}Fields§
§name: String§effect_types: Vec<String>§is_algebraic: bool§monad_based: boolImplementations§
Source§impl EffectSystem
impl EffectSystem
pub fn algebraic_effects() -> Self
pub fn monad_transformers() -> Self
pub fn add_effect(&mut self, eff: &str)
pub fn effect_handling_description(&self) -> String
pub fn free_monad_presentation(&self) -> String
Trait Implementations§
Source§impl Clone for EffectSystem
impl Clone for EffectSystem
Source§fn clone(&self) -> EffectSystem
fn clone(&self) -> EffectSystem
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 EffectSystem
impl RefUnwindSafe for EffectSystem
impl Send for EffectSystem
impl Sync for EffectSystem
impl Unpin for EffectSystem
impl UnsafeUnpin for EffectSystem
impl UnwindSafe for EffectSystem
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