Struct rend::NonZeroU128_le
source · #[repr(C, align(16))]pub struct NonZeroU128_le(/* private fields */);
Expand description
A little-endian NonZeroU128
with a guaranteed size and alignment of 16
.
Implementations§
source§impl NonZeroU128_le
impl NonZeroU128_le
sourcepub const fn new(value: u128) -> Option<Self>
pub const fn new(value: u128) -> Option<Self>
Creates a non-zero if the given value is not zero.
sourcepub const unsafe fn new_unchecked(value: u128) -> Self
pub const unsafe fn new_unchecked(value: u128) -> Self
Creates a non-zero without checking whether it is non-zero. This results in undefined behavior if the value is zero.
§Safety
The value must not be zero.
sourcepub const fn from_native(value: NonZeroU128) -> Self
pub const fn from_native(value: NonZeroU128) -> Self
Returns a NonZeroU128_le
containing value
.
sourcepub const fn to_native(self) -> NonZeroU128
pub const fn to_native(self) -> NonZeroU128
Returns a NonZeroU128
with the same value as self
.
Trait Implementations§
source§impl Binary for NonZeroU128_le
impl Binary for NonZeroU128_le
source§impl BitOr<&NonZeroU128_le> for &NonZeroU128_le
impl BitOr<&NonZeroU128_le> for &NonZeroU128_le
source§impl BitOr<&NonZeroU128_le> for NonZeroU128
impl BitOr<&NonZeroU128_le> for NonZeroU128
source§impl BitOr<&NonZeroU128_le> for NonZeroU128_le
impl BitOr<&NonZeroU128_le> for NonZeroU128_le
source§impl BitOr<NonZeroU128_le> for &NonZeroU128_le
impl BitOr<NonZeroU128_le> for &NonZeroU128_le
source§impl BitOr<NonZeroU128_le> for NonZeroU128
impl BitOr<NonZeroU128_le> for NonZeroU128
source§impl BitOr for NonZeroU128_le
impl BitOr for NonZeroU128_le
source§impl BitOrAssign<NonZero<u128>> for NonZeroU128_le
impl BitOrAssign<NonZero<u128>> for NonZeroU128_le
source§fn bitor_assign(&mut self, other: NonZeroU128)
fn bitor_assign(&mut self, other: NonZeroU128)
Performs the
|=
operation. Read moresource§impl BitOrAssign for NonZeroU128_le
impl BitOrAssign for NonZeroU128_le
source§fn bitor_assign(&mut self, other: NonZeroU128_le)
fn bitor_assign(&mut self, other: NonZeroU128_le)
Performs the
|=
operation. Read moresource§impl Clone for NonZeroU128_le
impl Clone for NonZeroU128_le
source§impl Debug for NonZeroU128_le
impl Debug for NonZeroU128_le
source§impl Display for NonZeroU128_le
impl Display for NonZeroU128_le
source§impl<'a> From<&'a NonZero<u128>> for NonZeroU128_le
impl<'a> From<&'a NonZero<u128>> for NonZeroU128_le
source§fn from(value: &'a NonZeroU128) -> Self
fn from(value: &'a NonZeroU128) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a NonZeroU128_le> for NonZeroU128
impl<'a> From<&'a NonZeroU128_le> for NonZeroU128
source§fn from(value: &'a NonZeroU128_le) -> Self
fn from(value: &'a NonZeroU128_le) -> Self
Converts to this type from the input type.
source§impl From<NonZero<u128>> for NonZeroU128_le
impl From<NonZero<u128>> for NonZeroU128_le
source§fn from(value: NonZeroU128) -> Self
fn from(value: NonZeroU128) -> Self
Converts to this type from the input type.
source§impl From<NonZeroU128_le> for NonZeroU128
impl From<NonZeroU128_le> for NonZeroU128
source§fn from(value: NonZeroU128_le) -> Self
fn from(value: NonZeroU128_le) -> Self
Converts to this type from the input type.
source§impl Hash for NonZeroU128_le
impl Hash for NonZeroU128_le
source§impl IntoBytes for NonZeroU128_le
impl IntoBytes for NonZeroU128_le
source§impl KnownLayout for NonZeroU128_lewhere
NonZeroU128: KnownLayout,
impl KnownLayout for NonZeroU128_lewhere
NonZeroU128: KnownLayout,
§type PointerMetadata = <NonZero<u128> as KnownLayout>::PointerMetadata
type PointerMetadata = <NonZero<u128> as KnownLayout>::PointerMetadata
The type of metadata stored in a pointer to
Self
. Read moresource§impl LowerHex for NonZeroU128_le
impl LowerHex for NonZeroU128_le
source§impl Octal for NonZeroU128_le
impl Octal for NonZeroU128_le
source§impl Ord for NonZeroU128_le
impl Ord for NonZeroU128_le
source§impl PartialEq<NonZero<u128>> for NonZeroU128_le
impl PartialEq<NonZero<u128>> for NonZeroU128_le
source§fn eq(&self, other: &NonZeroU128) -> bool
fn eq(&self, other: &NonZeroU128) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<NonZeroU128_le> for NonZeroU128
impl PartialEq<NonZeroU128_le> for NonZeroU128
source§fn eq(&self, other: &NonZeroU128_le) -> bool
fn eq(&self, other: &NonZeroU128_le) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for NonZeroU128_le
impl PartialEq for NonZeroU128_le
source§impl PartialOrd<NonZero<u128>> for NonZeroU128_le
impl PartialOrd<NonZero<u128>> for NonZeroU128_le
source§fn partial_cmp(&self, other: &NonZeroU128) -> Option<Ordering>
fn partial_cmp(&self, other: &NonZeroU128) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl PartialOrd for NonZeroU128_le
impl PartialOrd for NonZeroU128_le
1.0.0 · source§fn 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 moresource§impl TryFromBytes for NonZeroU128_lewhere
NonZeroU128: TryFromBytes,
impl TryFromBytes for NonZeroU128_lewhere
NonZeroU128: TryFromBytes,
§fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
§fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
§fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
source§impl UpperHex for NonZeroU128_le
impl UpperHex for NonZeroU128_le
impl Copy for NonZeroU128_le
impl Eq for NonZeroU128_le
impl Immutable for NonZeroU128_lewhere
NonZeroU128: Immutable,
Auto Trait Implementations§
impl Freeze for NonZeroU128_le
impl RefUnwindSafe for NonZeroU128_le
impl Send for NonZeroU128_le
impl Sync for NonZeroU128_le
impl Unpin for NonZeroU128_le
impl UnwindSafe for NonZeroU128_le
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)