pub struct AbstractState {
pub vars: HashMap<String, IntervalDomain>,
}Expand description
An abstract state: a map from variable name to interval abstract value.
Fields§
§vars: HashMap<String, IntervalDomain>Variable name → interval abstract value
Implementations§
Source§impl AbstractState
impl AbstractState
Sourcepub fn get(&self, var: &str) -> IntervalDomain
pub fn get(&self, var: &str) -> IntervalDomain
Look up the abstract value of a variable (top if unknown).
Sourcepub fn set(&mut self, var: impl Into<String>, val: IntervalDomain)
pub fn set(&mut self, var: impl Into<String>, val: IntervalDomain)
Set the abstract value of a variable.
Trait Implementations§
Source§impl Clone for AbstractState
impl Clone for AbstractState
Source§fn clone(&self) -> AbstractState
fn clone(&self) -> AbstractState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AbstractState
impl RefUnwindSafe for AbstractState
impl Send for AbstractState
impl Sync for AbstractState
impl Unpin for AbstractState
impl UnsafeUnpin for AbstractState
impl UnwindSafe for AbstractState
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