pub struct Upgrades {
globals: HandleSet<GlobalVariable>,
fields: FastHashMap<Handle<Type>, BitSet>,
}
Fields§
§globals: HandleSet<GlobalVariable>
Global variables that we’ve accessed using atomic operations.
This includes globals with composite types (arrays, structs) where we’ve only accessed some components (elements, fields) atomically.
fields: FastHashMap<Handle<Type>, BitSet>
Struct fields that we’ve accessed using atomic operations.
Each key refers to some Struct
type, and each value is a set of
the indices of the fields in that struct that have been accessed
atomically.
This includes fields with composite types (arrays, structs) of which we’ve only accessed some components (elements, fields) atomically.
Implementations§
source§impl Upgrades
impl Upgrades
pub fn insert_global(&mut self, global: Handle<GlobalVariable>)
pub fn insert_field(&mut self, struct_type: Handle<Type>, field: usize)
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Upgrades
impl RefUnwindSafe for Upgrades
impl Send for Upgrades
impl Sync for Upgrades
impl Unpin for Upgrades
impl UnwindSafe for Upgrades
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