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