pub struct NamedState { /* private fields */ }Expand description
A partial existential assignment keyed by canonical IR variable name.
Hidden declarations with the same name share one slot, including collisions with root names. These assignments belong to one evaluator and never add variables to an ordinary graph state, fingerprint or serialized trace.
Implementations§
Source§impl NamedState
impl NamedState
Sourcepub fn get(&self, name: &str) -> Option<&Value>
pub fn get(&self, name: &str) -> Option<&Value>
The assigned value of a canonical name; absence means unassigned.
Sourcepub fn assignments(&self) -> impl ExactSizeIterator<Item = (&str, &Value)>
pub fn assignments(&self) -> impl ExactSizeIterator<Item = (&str, &Value)>
The actual assigned names and values, in name order.
Trait Implementations§
Source§impl Clone for NamedState
impl Clone for NamedState
Auto Trait Implementations§
impl !RefUnwindSafe for NamedState
impl !UnwindSafe for NamedState
impl Forget for NamedState
impl Freeze for NamedState
impl Move for NamedState
impl Send for NamedState
impl Sync for NamedState
impl Unpin for NamedState
impl UnsafeUnpin for NamedState
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