#[repr(transparent)]pub struct TableSet(pub u128);Expand description
Bitset of attached table slots on a node (up to 128 tables).
Tuple Fields§
§0: u128Implementations§
Source§impl TableSet
impl TableSet
pub const EMPTY: Self
pub const fn raw(self) -> u128
pub const fn is_empty(self) -> bool
pub const fn contains(self, slot: TableSlot) -> bool
pub const fn intersects(self, other: Self) -> bool
pub fn insert(&mut self, slot: TableSlot)
pub fn remove(&mut self, slot: TableSlot)
Sourcepub const fn iter_slots(self) -> TableSetIter ⓘ
pub const fn iter_slots(self) -> TableSetIter ⓘ
Iterates every set TableSlot in ascending slot order.
Trait Implementations§
impl Copy for TableSet
impl Eq for TableSet
impl StructuralPartialEq for TableSet
Auto Trait Implementations§
impl Forget for TableSet
impl Freeze for TableSet
impl Move for TableSet
impl RefUnwindSafe for TableSet
impl Send for TableSet
impl Sync for TableSet
impl Unpin for TableSet
impl UnsafeUnpin for TableSet
impl UnwindSafe for TableSet
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