pub enum EffectClass {
Mutating,
Readonly,
Pure,
}Expand description
Effect classification of a step (full set, spine A.4).
Note: the FlowIR schema restricts action steps to EffectClassAction
(pure never crosses a Provider — pure computation belongs to let).
Variants§
Mutating
Changes the world; replays are only safe when declared idempotent.
Readonly
Probes the world without changing it; always safe to replay.
Pure
Pure computation; never crosses a Provider.
Trait Implementations§
Source§impl Clone for EffectClass
impl Clone for EffectClass
Source§fn clone(&self) -> EffectClass
fn clone(&self) -> EffectClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EffectClass
Source§impl Debug for EffectClass
impl Debug for EffectClass
Source§impl<'de> Deserialize<'de> for EffectClass
impl<'de> Deserialize<'de> for EffectClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EffectClass
Source§impl Hash for EffectClass
impl Hash for EffectClass
Source§impl JsonSchema for EffectClass
impl JsonSchema for EffectClass
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for EffectClass
impl Ord for EffectClass
Source§fn cmp(&self, other: &EffectClass) -> Ordering
fn cmp(&self, other: &EffectClass) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EffectClass
impl PartialEq for EffectClass
Source§impl PartialOrd for EffectClass
impl PartialOrd for EffectClass
Source§impl Serialize for EffectClass
impl Serialize for EffectClass
impl StructuralPartialEq for EffectClass
Auto Trait Implementations§
impl Freeze for EffectClass
impl RefUnwindSafe for EffectClass
impl Send for EffectClass
impl Sync for EffectClass
impl Unpin for EffectClass
impl UnsafeUnpin for EffectClass
impl UnwindSafe for EffectClass
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