pub struct Capacity(/* private fields */);Implementations§
Source§impl Capacity
impl Capacity
pub const EMPTY: Self
pub const fn new(capacity: usize) -> Option<Self>
pub const fn get(self) -> usize
pub const fn raw(self) -> u32
pub const fn slot(self, index: usize) -> Option<SlotIndex>
pub fn slots( self, ) -> impl ExactSizeIterator<Item = SlotIndex> + DoubleEndedIterator
Trait Implementations§
impl Copy for Capacity
impl Eq for Capacity
impl StructuralPartialEq for Capacity
Auto Trait Implementations§
impl Freeze for Capacity
impl RefUnwindSafe for Capacity
impl Send for Capacity
impl Sync for Capacity
impl Unpin for Capacity
impl UnsafeUnpin for Capacity
impl UnwindSafe for Capacity
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