pub struct FunctionFacts {
pub direct_writes: bool,
pub calls: BTreeSet<String>,
pub opaque_effects: bool,
}Expand description
What one expression tree contributes to a mutability answer, before any callee bodies are consulted.
Fields§
§direct_writes: boolA data-modifying statement appears somewhere in the tree itself: the
same construct set Expr::contains_mutation rejects, at the same
full depth (subqueries, blocks, idiom parts, closure bodies and call
arguments included).
calls: BTreeSet<String>Names of the user-defined functions the tree calls, without the
fn:: prefix, at any depth.
opaque_effects: boolThe tree invokes something whose body cannot be inspected: a script,
module or silo function, a statement-evaluating builtin (the set
Function::read_only rejects), or a call operator whose target is
not a closure literal.
Trait Implementations§
Source§impl Clone for FunctionFacts
impl Clone for FunctionFacts
Source§impl Debug for FunctionFacts
impl Debug for FunctionFacts
Source§impl Default for FunctionFacts
impl Default for FunctionFacts
impl Eq for FunctionFacts
Source§impl PartialEq for FunctionFacts
impl PartialEq for FunctionFacts
impl StructuralPartialEq for FunctionFacts
Auto Trait Implementations§
impl Freeze for FunctionFacts
impl RefUnwindSafe for FunctionFacts
impl Send for FunctionFacts
impl Sync for FunctionFacts
impl Unpin for FunctionFacts
impl UnsafeUnpin for FunctionFacts
impl UnwindSafe for FunctionFacts
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.