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