pub struct IsizeInPtr { /* private fields */ }Expand description
Stores an isize as a tagged value inside a pointer. This means that one bit of isize isn’t
available, and therefore only numbers within IsizeInPtr::MIN and IsizeIntPtr::MAX are
convertible.
To wrap isize (or any other numerical i.. type) into IsizeInPtr (if it fits), use
try_from from impl TryFrom<isize> for IsizeInPtr.
Implementations§
Trait Implementations§
Source§impl Clone for IsizeInPtr
impl Clone for IsizeInPtr
Source§fn clone(&self) -> IsizeInPtr
fn clone(&self) -> IsizeInPtr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IsizeInPtr
Source§impl Debug for IsizeInPtr
impl Debug for IsizeInPtr
Source§impl Default for IsizeInPtr
impl Default for IsizeInPtr
impl Eq for IsizeInPtr
Source§impl From<IsizeInPtr> for isize
impl From<IsizeInPtr> for isize
Source§fn from(value: IsizeInPtr) -> isize
fn from(value: IsizeInPtr) -> isize
Convert value back to isize.
Source§impl Ord for IsizeInPtr
impl Ord for IsizeInPtr
Source§fn cmp(&self, other: &IsizeInPtr) -> Ordering
fn cmp(&self, other: &IsizeInPtr) -> Ordering
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 PartialEq for IsizeInPtr
impl PartialEq for IsizeInPtr
Source§fn eq(&self, other: &IsizeInPtr) -> bool
fn eq(&self, other: &IsizeInPtr) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IsizeInPtr
impl PartialOrd for IsizeInPtr
impl StructuralPartialEq for IsizeInPtr
Source§impl TryFrom<i8> for IsizeInPtr
impl TryFrom<i8> for IsizeInPtr
Source§impl TryFrom<i16> for IsizeInPtr
impl TryFrom<i16> for IsizeInPtr
Source§impl TryFrom<i32> for IsizeInPtr
impl TryFrom<i32> for IsizeInPtr
Source§impl TryFrom<i64> for IsizeInPtr
impl TryFrom<i64> for IsizeInPtr
Source§impl TryFrom<i128> for IsizeInPtr
impl TryFrom<i128> for IsizeInPtr
Auto Trait Implementations§
impl !Send for IsizeInPtr
impl !Sync for IsizeInPtr
impl Freeze for IsizeInPtr
impl RefUnwindSafe for IsizeInPtr
impl Unpin for IsizeInPtr
impl UnsafeUnpin for IsizeInPtr
impl UnwindSafe for IsizeInPtr
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