pub struct EffectSet { /* private fields */ }Expand description
A set of computational effects.
Implementations§
Source§impl EffectSet
impl EffectSet
Sourcepub fn is_total(&self) -> bool
pub fn is_total(&self) -> bool
Check if the computation is total (no divergence or exceptions).
Sourcepub fn is_deterministic(&self) -> bool
pub fn is_deterministic(&self) -> bool
Check if the computation is deterministic.
Sourcepub fn intersection(&self, other: &EffectSet) -> EffectSet
pub fn intersection(&self, other: &EffectSet) -> EffectSet
Get the intersection of two effect sets.
Sourcepub fn difference(&self, other: &EffectSet) -> EffectSet
pub fn difference(&self, other: &EffectSet) -> EffectSet
Get the difference of two effect sets (effects in self but not in other).
Sourcepub fn is_subset_of(&self, other: &EffectSet) -> bool
pub fn is_subset_of(&self, other: &EffectSet) -> bool
Check if this set is a subset of another.
Sourcepub fn expand_implications(&mut self)
pub fn expand_implications(&mut self)
Expand implied effects.
For example, if FileSystem is present, IO is also added.
Trait Implementations§
impl Eq for EffectSet
impl StructuralPartialEq for EffectSet
Auto Trait Implementations§
impl Freeze for EffectSet
impl RefUnwindSafe for EffectSet
impl Send for EffectSet
impl Sync for EffectSet
impl Unpin for EffectSet
impl UnwindSafe for EffectSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.