pub struct StateData { /* private fields */ }
Expand description
Implementations§
Source§impl StateData
impl StateData
Sourcepub fn insert(
&mut self,
var: &Box<dyn Var + Send + Sync>,
state_val: Box<dyn Value>,
) -> Result<(), InvalidValue>
pub fn insert( &mut self, var: &Box<dyn Var + Send + Sync>, state_val: Box<dyn Value>, ) -> Result<(), InvalidValue>
Add a new value
pub fn contains(&self, var_id: &VarId) -> bool
Sourcepub fn contains_only(&self, contains_only: &HashSet<&VarId>) -> bool
pub fn contains_only(&self, contains_only: &HashSet<&VarId>) -> bool
Confirm that the StateData only contains the set of VarId
s listed
Sourcepub fn merge_from(&mut self, src: StateData)
pub fn merge_from(&mut self, src: StateData)
Merge the data from another StateData
into this one.
pub fn iter_val(&self) -> impl Iterator<Item = (&VarId, &Box<dyn Value>)>
Trait Implementations§
impl StructuralPartialEq for StateData
Auto Trait Implementations§
impl Freeze for StateData
impl !RefUnwindSafe for StateData
impl Send for StateData
impl Sync for StateData
impl Unpin for StateData
impl !UnwindSafe for StateData
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