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