pub struct ScopeBindings {
pub assigned: Vec<String>,
pub needs_mut: HashSet<String>,
pub optional: HashSet<String>,
}Expand description
The binding facts for one generated scope.
Fields§
§assigned: Vec<String>Names bound by Assign statements, in first-assignment order.
needs_mut: HashSet<String>The subset of names (assigned names and parameters) that need a mutable binding.
optional: HashSet<String>Names assigned None on some path: they hold an Option, and every
non-None store into them wraps in Some.
Auto Trait Implementations§
impl Freeze for ScopeBindings
impl RefUnwindSafe for ScopeBindings
impl Send for ScopeBindings
impl Sync for ScopeBindings
impl Unpin for ScopeBindings
impl UnsafeUnpin for ScopeBindings
impl UnwindSafe for ScopeBindings
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