pub struct EffectSummary {
pub computed: bool,
pub writes: Vec<String>,
pub interactions: Vec<String>,
}Expand description
What a unit does beyond computing a value.
Fields§
§computed: boolWhether the helper attempted this analysis at all.
Distinguishes “computed, and there are no effects” from “not computed”, which are the same empty summary and very different claims.
writes: Vec<String>Symbols whose state the unit writes.
interactions: Vec<String>Closed external interactions observed in the unit.
An empty list is not a proof that the unit is pure; helpers report only interactions they can establish from their deliberately narrow vocabulary.
Trait Implementations§
Source§impl Clone for EffectSummary
impl Clone for EffectSummary
Source§fn clone(&self) -> EffectSummary
fn clone(&self) -> EffectSummary
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 moreSource§impl Debug for EffectSummary
impl Debug for EffectSummary
Source§impl Default for EffectSummary
impl Default for EffectSummary
Source§fn default() -> EffectSummary
fn default() -> EffectSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EffectSummary
impl<'de> Deserialize<'de> for EffectSummary
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 EffectSummary
Source§impl PartialEq for EffectSummary
impl PartialEq for EffectSummary
Source§impl Serialize for EffectSummary
impl Serialize for EffectSummary
impl StructuralPartialEq for EffectSummary
Auto Trait Implementations§
impl Freeze for EffectSummary
impl RefUnwindSafe for EffectSummary
impl Send for EffectSummary
impl Sync for EffectSummary
impl Unpin for EffectSummary
impl UnsafeUnpin for EffectSummary
impl UnwindSafe for EffectSummary
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