pub struct CpuShard(/* private fields */);Expand description
Determine the right sharding by cpu.
Minimise the cost of hashing function of remainder calculation.
Refer to bithacks module.
Implementations§
Auto Trait Implementations§
impl Freeze for CpuShard
impl RefUnwindSafe for CpuShard
impl Send for CpuShard
impl Sync for CpuShard
impl Unpin for CpuShard
impl UnwindSafe for CpuShard
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