Enum platforms::PointerWidth
source · [−]#[non_exhaustive]
pub enum PointerWidth {
U16,
U32,
U64,
}
Expand description
target_pointer_width
: Size of native pointer types (usize
, isize
) in bits
64 bits for modern desktops and phones, 32-bits for older devices, 16 bits for certain microcontrollers
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
U16
16
U32
32
U64
64
Implementations
sourceimpl PointerWidth
impl PointerWidth
Trait Implementations
sourceimpl Clone for PointerWidth
impl Clone for PointerWidth
sourcefn clone(&self) -> PointerWidth
fn clone(&self) -> PointerWidth
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PointerWidth
impl Debug for PointerWidth
sourceimpl Display for PointerWidth
impl Display for PointerWidth
sourceimpl From<PointerWidth> for u8
impl From<PointerWidth> for u8
sourcefn from(value: PointerWidth) -> Self
fn from(value: PointerWidth) -> Self
Converts to this type from the input type.
sourceimpl FromStr for PointerWidth
impl FromStr for PointerWidth
sourceimpl Hash for PointerWidth
impl Hash for PointerWidth
sourceimpl Ord for PointerWidth
impl Ord for PointerWidth
sourceimpl PartialEq<PointerWidth> for PointerWidth
impl PartialEq<PointerWidth> for PointerWidth
sourceimpl PartialOrd<PointerWidth> for PointerWidth
impl PartialOrd<PointerWidth> for PointerWidth
sourcefn partial_cmp(&self, other: &PointerWidth) -> Option<Ordering>
fn partial_cmp(&self, other: &PointerWidth) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl TryFrom<u8> for PointerWidth
impl TryFrom<u8> for PointerWidth
impl Copy for PointerWidth
impl Eq for PointerWidth
impl StructuralEq for PointerWidth
impl StructuralPartialEq for PointerWidth
Auto Trait Implementations
impl RefUnwindSafe for PointerWidth
impl Send for PointerWidth
impl Sync for PointerWidth
impl Unpin for PointerWidth
impl UnwindSafe for PointerWidth
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more