pub enum PtrKind {
Thin,
Wide,
Unknown,
}Expand description
The kind of a pointer based on its size.
Variants§
Thin
A thin pointer (sized types) - one word
Wide
A wide pointer (slices, trait objects) - two words
Unknown
Unknown pointer size (neither one nor two words)
Trait Implementations§
impl Copy for PtrKind
impl Eq for PtrKind
impl StructuralPartialEq for PtrKind
Auto Trait Implementations§
impl Freeze for PtrKind
impl RefUnwindSafe for PtrKind
impl Send for PtrKind
impl Sync for PtrKind
impl Unpin for PtrKind
impl UnwindSafe for PtrKind
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