pub struct Slots(/* private fields */);Expand description
Wrapper type for the number of buckets (also called “slots”).
This is a thin newtype over u32 used to make APIs more expressive. You can
pass a plain u32 wherever a Slots is expected via Into<Slots>.
Invariants
- Value must be greater than 0.
Trait Implementations§
impl Copy for Slots
Auto Trait Implementations§
impl Freeze for Slots
impl RefUnwindSafe for Slots
impl Send for Slots
impl Sync for Slots
impl Unpin for Slots
impl UnwindSafe for Slots
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