#[repr(C, packed(1))]pub struct NonZeroU64_ube(/* private fields */);
Expand description
A big-endian unaligned NonZeroU64
with a guaranteed size of 16
and alignment of 1
.
Implementations§
source§impl NonZeroU64_ube
impl NonZeroU64_ube
sourcepub const fn new(value: u64) -> Option<Self>
pub const fn new(value: u64) -> Option<Self>
Creates a non-zero if the given value is not zero.
sourcepub const unsafe fn new_unchecked(value: u64) -> Self
pub const unsafe fn new_unchecked(value: u64) -> 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: NonZeroU64) -> Self
pub const fn from_native(value: NonZeroU64) -> Self
Returns a NonZeroU64_ube
containing value
.
sourcepub const fn to_native(self) -> NonZeroU64
pub const fn to_native(self) -> NonZeroU64
Returns a NonZeroU64
with the same value as self
.
Trait Implementations§
source§impl Binary for NonZeroU64_ube
impl Binary for NonZeroU64_ube
source§impl BitOr<&NonZeroU64_ube> for &NonZeroU64_ube
impl BitOr<&NonZeroU64_ube> for &NonZeroU64_ube
source§impl BitOr<&NonZeroU64_ube> for NonZeroU64
impl BitOr<&NonZeroU64_ube> for NonZeroU64
source§impl BitOr<&NonZeroU64_ube> for NonZeroU64_ube
impl BitOr<&NonZeroU64_ube> for NonZeroU64_ube
source§impl BitOr<NonZeroU64_ube> for &NonZeroU64_ube
impl BitOr<NonZeroU64_ube> for &NonZeroU64_ube
source§impl BitOr<NonZeroU64_ube> for NonZeroU64
impl BitOr<NonZeroU64_ube> for NonZeroU64
source§impl BitOr for NonZeroU64_ube
impl BitOr for NonZeroU64_ube
source§impl BitOrAssign<NonZero<u64>> for NonZeroU64_ube
impl BitOrAssign<NonZero<u64>> for NonZeroU64_ube
source§fn bitor_assign(&mut self, other: NonZeroU64)
fn bitor_assign(&mut self, other: NonZeroU64)
Performs the
|=
operation. Read moresource§impl BitOrAssign for NonZeroU64_ube
impl BitOrAssign for NonZeroU64_ube
source§fn bitor_assign(&mut self, other: NonZeroU64_ube)
fn bitor_assign(&mut self, other: NonZeroU64_ube)
Performs the
|=
operation. Read moresource§impl Clone for NonZeroU64_ube
impl Clone for NonZeroU64_ube
source§impl Debug for NonZeroU64_ube
impl Debug for NonZeroU64_ube
source§impl Display for NonZeroU64_ube
impl Display for NonZeroU64_ube
source§impl<'a> From<&'a NonZero<u64>> for NonZeroU64_ube
impl<'a> From<&'a NonZero<u64>> for NonZeroU64_ube
source§fn from(value: &'a NonZeroU64) -> Self
fn from(value: &'a NonZeroU64) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a NonZeroU64_ube> for NonZeroU64
impl<'a> From<&'a NonZeroU64_ube> for NonZeroU64
source§fn from(value: &'a NonZeroU64_ube) -> Self
fn from(value: &'a NonZeroU64_ube) -> Self
Converts to this type from the input type.
source§impl From<NonZero<u64>> for NonZeroU64_ube
impl From<NonZero<u64>> for NonZeroU64_ube
source§fn from(value: NonZeroU64) -> Self
fn from(value: NonZeroU64) -> Self
Converts to this type from the input type.
source§impl From<NonZeroU64_ube> for NonZeroU64
impl From<NonZeroU64_ube> for NonZeroU64
source§fn from(value: NonZeroU64_ube) -> Self
fn from(value: NonZeroU64_ube) -> Self
Converts to this type from the input type.
source§impl Hash for NonZeroU64_ube
impl Hash for NonZeroU64_ube
source§impl LowerHex for NonZeroU64_ube
impl LowerHex for NonZeroU64_ube
source§impl Octal for NonZeroU64_ube
impl Octal for NonZeroU64_ube
source§impl Ord for NonZeroU64_ube
impl Ord for NonZeroU64_ube
source§impl PartialEq<NonZeroU64_ube> for NonZeroU64
impl PartialEq<NonZeroU64_ube> for NonZeroU64
source§impl PartialEq for NonZeroU64_ube
impl PartialEq for NonZeroU64_ube
source§impl PartialOrd<NonZero<u64>> for NonZeroU64_ube
impl PartialOrd<NonZero<u64>> for NonZeroU64_ube
source§impl PartialOrd for NonZeroU64_ube
impl PartialOrd for NonZeroU64_ube
source§impl UpperHex for NonZeroU64_ube
impl UpperHex for NonZeroU64_ube
impl Copy for NonZeroU64_ube
impl Eq for NonZeroU64_ube
Auto Trait Implementations§
impl Freeze for NonZeroU64_ube
impl RefUnwindSafe for NonZeroU64_ube
impl Send for NonZeroU64_ube
impl Sync for NonZeroU64_ube
impl Unpin for NonZeroU64_ube
impl UnwindSafe for NonZeroU64_ube
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§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
)