pub struct ValueI(pub usize);
Expand description
A ValueI
represents an index into Slab.ps.vals
.
It behaves much like a pointer or reference, but it is ‘safe’ (unlike a raw pointer) and is not managed by the Rust borrow checker (unlike a reference).
Tuple Fields§
§0: usize
Implementations§
Trait Implementations§
impl Copy for ValueI
impl Eq for ValueI
impl StructuralPartialEq for ValueI
Auto Trait Implementations§
impl Freeze for ValueI
impl RefUnwindSafe for ValueI
impl Send for ValueI
impl Sync for ValueI
impl Unpin for ValueI
impl UnwindSafe for ValueI
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