pub struct SparseValueMap {
pub sparse_slot: SparseSlot<Rc<RefCell<Value>>>,
pub id_generator: IndexAllocator,
pub type_parameter: ResolvedType,
pub resolved_type: ResolvedType,
pub rust_type_ref_for_id: ResolvedRustTypeRef,
}
Fields§
§sparse_slot: SparseSlot<Rc<RefCell<Value>>>
§id_generator: IndexAllocator
§type_parameter: ResolvedType
§resolved_type: ResolvedType
§rust_type_ref_for_id: ResolvedRustTypeRef
Implementations§
Source§impl SparseValueMap
impl SparseValueMap
pub fn new(resolved_type: ResolvedType) -> Self
pub fn add(&mut self, v: Value) -> Value
pub fn remove(&mut self, id: &SparseValueId)
pub fn iter(&self) -> Iter<'_, Rc<RefCell<Value>>>
pub fn iter_mut(&mut self) -> IterMut<'_, Rc<RefCell<Value>>>
pub fn values(&self) -> Vec<Rc<RefCell<Value>>>
Trait Implementations§
Source§impl Debug for SparseValueMap
impl Debug for SparseValueMap
Auto Trait Implementations§
impl Freeze for SparseValueMap
impl !RefUnwindSafe for SparseValueMap
impl !Send for SparseValueMap
impl !Sync for SparseValueMap
impl Unpin for SparseValueMap
impl !UnwindSafe for SparseValueMap
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