#[repr(C, align(16))]pub struct NonZeroU128_be(/* private fields */);
Expand description
A big-endian NonZeroU128
with a guaranteed size and alignment of 16
.
Implementations§
Source§impl NonZeroU128_be
impl NonZeroU128_be
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_be
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_be
impl Binary for NonZeroU128_be
Source§impl BitOr<&NonZeroU128_be> for &NonZeroU128_be
impl BitOr<&NonZeroU128_be> for &NonZeroU128_be
Source§impl BitOr<&NonZeroU128_be> for NonZeroU128
impl BitOr<&NonZeroU128_be> for NonZeroU128
Source§impl BitOr<&NonZeroU128_be> for NonZeroU128_be
impl BitOr<&NonZeroU128_be> for NonZeroU128_be
Source§impl BitOr<NonZeroU128_be> for &NonZeroU128_be
impl BitOr<NonZeroU128_be> for &NonZeroU128_be
Source§impl BitOr<NonZeroU128_be> for NonZeroU128
impl BitOr<NonZeroU128_be> for NonZeroU128
Source§impl BitOr for NonZeroU128_be
impl BitOr for NonZeroU128_be
Source§impl BitOrAssign<NonZero<u128>> for NonZeroU128_be
impl BitOrAssign<NonZero<u128>> for NonZeroU128_be
Source§fn bitor_assign(&mut self, other: NonZeroU128)
fn bitor_assign(&mut self, other: NonZeroU128)
Performs the
|=
operation. Read moreSource§impl BitOrAssign for NonZeroU128_be
impl BitOrAssign for NonZeroU128_be
Source§fn bitor_assign(&mut self, other: NonZeroU128_be)
fn bitor_assign(&mut self, other: NonZeroU128_be)
Performs the
|=
operation. Read moreSource§impl Clone for NonZeroU128_be
impl Clone for NonZeroU128_be
Source§impl Debug for NonZeroU128_be
impl Debug for NonZeroU128_be
Source§impl Display for NonZeroU128_be
impl Display for NonZeroU128_be
Source§impl<'a> From<&'a NonZero<u128>> for NonZeroU128_be
impl<'a> From<&'a NonZero<u128>> for NonZeroU128_be
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_be> for NonZeroU128
impl<'a> From<&'a NonZeroU128_be> for NonZeroU128
Source§fn from(value: &'a NonZeroU128_be) -> Self
fn from(value: &'a NonZeroU128_be) -> Self
Converts to this type from the input type.
Source§impl From<NonZero<u128>> for NonZeroU128_be
impl From<NonZero<u128>> for NonZeroU128_be
Source§fn from(value: NonZeroU128) -> Self
fn from(value: NonZeroU128) -> Self
Converts to this type from the input type.
Source§impl From<NonZeroU128_be> for NonZeroU128
impl From<NonZeroU128_be> for NonZeroU128
Source§fn from(value: NonZeroU128_be) -> Self
fn from(value: NonZeroU128_be) -> Self
Converts to this type from the input type.
Source§impl Hash for NonZeroU128_be
impl Hash for NonZeroU128_be
Source§impl LowerHex for NonZeroU128_be
impl LowerHex for NonZeroU128_be
Source§impl Octal for NonZeroU128_be
impl Octal for NonZeroU128_be
Source§impl Ord for NonZeroU128_be
impl Ord for NonZeroU128_be
Source§impl PartialEq<NonZeroU128_be> for NonZeroU128
impl PartialEq<NonZeroU128_be> for NonZeroU128
Source§impl PartialEq for NonZeroU128_be
impl PartialEq for NonZeroU128_be
Source§impl PartialOrd<NonZero<u128>> for NonZeroU128_be
impl PartialOrd<NonZero<u128>> for NonZeroU128_be
Source§impl PartialOrd for NonZeroU128_be
impl PartialOrd for NonZeroU128_be
Source§impl UpperHex for NonZeroU128_be
impl UpperHex for NonZeroU128_be
impl Copy for NonZeroU128_be
impl Eq for NonZeroU128_be
Auto Trait Implementations§
impl Freeze for NonZeroU128_be
impl RefUnwindSafe for NonZeroU128_be
impl Send for NonZeroU128_be
impl Sync for NonZeroU128_be
impl Unpin for NonZeroU128_be
impl UnwindSafe for NonZeroU128_be
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