pub struct StaticState {
pub known: HashMap<String, Value>,
pub unknown_keys: HashSet<String>,
}Expand description
Symbolic state for static analysis.
Fields§
§known: HashMap<String, Value>§unknown_keys: HashSet<String>Implementations§
Source§impl StaticState
impl StaticState
Trait Implementations§
Source§impl Clone for StaticState
impl Clone for StaticState
Source§fn clone(&self) -> StaticState
fn clone(&self) -> StaticState
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 StaticState
impl Debug for StaticState
Source§impl Default for StaticState
impl Default for StaticState
Source§impl StateView for StaticState
impl StateView for StaticState
Source§fn get_value(&self, key: &str) -> Option<Value>
fn get_value(&self, key: &str) -> Option<Value>
Get a value by key. Returns
None if the key doesn’t exist.Source§fn key_exists(&self, key: &str) -> bool
fn key_exists(&self, key: &str) -> bool
Check if a key exists in state.
Source§fn is_unknown(&self, key: &str) -> bool
fn is_unknown(&self, key: &str) -> bool
Whether a key’s value is unknown (symbolic analysis only).
Returns
false by default — runtime state is always known.Auto Trait Implementations§
impl Freeze for StaticState
impl RefUnwindSafe for StaticState
impl Send for StaticState
impl Sync for StaticState
impl Unpin for StaticState
impl UnsafeUnpin for StaticState
impl UnwindSafe for StaticState
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