pub struct DynamicUnits { /* private fields */ }Implementations§
Source§impl DynamicUnits
impl DynamicUnits
Sourcepub fn get(&self, id: CodeUnitId) -> Rc<CodeUnit>
pub fn get(&self, id: CodeUnitId) -> Rc<CodeUnit>
The live unit id.
Sourcepub fn lookup(&self, id: CodeUnitId) -> Option<&CodeUnit>
pub fn lookup(&self, id: CodeUnitId) -> Option<&CodeUnit>
The unit id, if it is live.
Sourcepub fn units(&self) -> impl Iterator<Item = (CodeUnitId, &CodeUnit)>
pub fn units(&self) -> impl Iterator<Item = (CodeUnitId, &CodeUnit)>
The live units with their ids, by slot.
pub fn is_empty(&self) -> bool
Sourcepub fn live_bytes(&self) -> usize
pub fn live_bytes(&self) -> usize
Bytes the live units hold.
Trait Implementations§
Auto Trait Implementations§
impl !Send for DynamicUnits
impl !Sync for DynamicUnits
impl Freeze for DynamicUnits
impl RefUnwindSafe for DynamicUnits
impl Unpin for DynamicUnits
impl UnsafeUnpin for DynamicUnits
impl UnwindSafe for DynamicUnits
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