pub struct Handle(/* private fields */);Expand description
A stable, opaque chunk handle. Newtype over the engine’s u64 id.
#[repr(transparent)] is load-bearing, not decoration: the bench adapter
reinterprets a &[u64] slice as &[Handle] without copying, which is sound
only because Handle has identical layout to u64.
Implementations§
Trait Implementations§
impl Copy for Handle
impl Eq for Handle
Source§impl Ord for Handle
impl Ord for Handle
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Handle
impl PartialOrd for Handle
impl StructuralPartialEq for Handle
Auto Trait Implementations§
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnsafeUnpin for Handle
impl UnwindSafe for Handle
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