pub struct GCInfoTable { /* private fields */ }
Expand description
Efficent storage for GCInfo.
Implementations§
Source§impl GCInfoTable
impl GCInfoTable
Sourcepub const MAX_INDEX: u16 = 16_384u16
pub const MAX_INDEX: u16 = 16_384u16
At maximum MAX_INDEX - 1
indices are supported.
We assume that 14 bits are enough to represent all possible types.
Sourcepub const MIN_INDEX: u16 = 1u16
pub const MIN_INDEX: u16 = 1u16
Minimum index returned. Values smaller MIN_INDEX
may be used as
sentinels.
pub const INITIAL_WANTED_LIMIT: u16 = 512u16
pub unsafe fn add_gc_info(&mut self, info: GCInfo) -> GCInfoIndex
pub unsafe fn get_gc_info(&self, index: GCInfoIndex) -> GCInfo
pub unsafe fn get_gc_info_mut(&mut self, index: GCInfoIndex) -> &mut GCInfo
Auto Trait Implementations§
impl !Freeze for GCInfoTable
impl RefUnwindSafe for GCInfoTable
impl !Send for GCInfoTable
impl !Sync for GCInfoTable
impl Unpin for GCInfoTable
impl UnwindSafe for GCInfoTable
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