Struct rend::NonZeroI64_le
source · #[repr(C, align(8))]pub struct NonZeroI64_le(/* private fields */);
Expand description
A little-endian NonZeroI64
with a guaranteed size and alignment of 8
.
Implementations§
source§impl NonZeroI64_le
impl NonZeroI64_le
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_le
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_le
impl Binary for NonZeroI64_le
source§impl BitOr<&NonZeroI64_le> for &NonZeroI64_le
impl BitOr<&NonZeroI64_le> for &NonZeroI64_le
source§impl BitOr<&NonZeroI64_le> for NonZeroI64
impl BitOr<&NonZeroI64_le> for NonZeroI64
source§impl BitOr<&NonZeroI64_le> for NonZeroI64_le
impl BitOr<&NonZeroI64_le> for NonZeroI64_le
source§impl BitOr<NonZeroI64_le> for &NonZeroI64_le
impl BitOr<NonZeroI64_le> for &NonZeroI64_le
source§impl BitOr<NonZeroI64_le> for NonZeroI64
impl BitOr<NonZeroI64_le> for NonZeroI64
source§impl BitOr for NonZeroI64_le
impl BitOr for NonZeroI64_le
source§impl BitOrAssign<NonZero<i64>> for NonZeroI64_le
impl BitOrAssign<NonZero<i64>> for NonZeroI64_le
source§fn bitor_assign(&mut self, other: NonZeroI64)
fn bitor_assign(&mut self, other: NonZeroI64)
Performs the
|=
operation. Read moresource§impl BitOrAssign for NonZeroI64_le
impl BitOrAssign for NonZeroI64_le
source§fn bitor_assign(&mut self, other: NonZeroI64_le)
fn bitor_assign(&mut self, other: NonZeroI64_le)
Performs the
|=
operation. Read moresource§impl Clone for NonZeroI64_le
impl Clone for NonZeroI64_le
source§impl Debug for NonZeroI64_le
impl Debug for NonZeroI64_le
source§impl Display for NonZeroI64_le
impl Display for NonZeroI64_le
source§impl<'a> From<&'a NonZero<i64>> for NonZeroI64_le
impl<'a> From<&'a NonZero<i64>> for NonZeroI64_le
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_le> for NonZeroI64
impl<'a> From<&'a NonZeroI64_le> for NonZeroI64
source§fn from(value: &'a NonZeroI64_le) -> Self
fn from(value: &'a NonZeroI64_le) -> Self
Converts to this type from the input type.
source§impl From<NonZero<i64>> for NonZeroI64_le
impl From<NonZero<i64>> for NonZeroI64_le
source§fn from(value: NonZeroI64) -> Self
fn from(value: NonZeroI64) -> Self
Converts to this type from the input type.
source§impl From<NonZeroI64_le> for NonZeroI64
impl From<NonZeroI64_le> for NonZeroI64
source§fn from(value: NonZeroI64_le) -> Self
fn from(value: NonZeroI64_le) -> Self
Converts to this type from the input type.
source§impl Hash for NonZeroI64_le
impl Hash for NonZeroI64_le
source§impl LowerHex for NonZeroI64_le
impl LowerHex for NonZeroI64_le
source§impl Octal for NonZeroI64_le
impl Octal for NonZeroI64_le
source§impl Ord for NonZeroI64_le
impl Ord for NonZeroI64_le
source§impl PartialEq<NonZero<i64>> for NonZeroI64_le
impl PartialEq<NonZero<i64>> for NonZeroI64_le
source§fn eq(&self, other: &NonZeroI64) -> bool
fn eq(&self, other: &NonZeroI64) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<NonZeroI64_le> for NonZeroI64
impl PartialEq<NonZeroI64_le> for NonZeroI64
source§fn eq(&self, other: &NonZeroI64_le) -> bool
fn eq(&self, other: &NonZeroI64_le) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for NonZeroI64_le
impl PartialEq for NonZeroI64_le
source§impl PartialOrd<NonZero<i64>> for NonZeroI64_le
impl PartialOrd<NonZero<i64>> for NonZeroI64_le
source§fn partial_cmp(&self, other: &NonZeroI64) -> Option<Ordering>
fn partial_cmp(&self, other: &NonZeroI64) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd for NonZeroI64_le
impl PartialOrd for NonZeroI64_le
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl UpperHex for NonZeroI64_le
impl UpperHex for NonZeroI64_le
impl Copy for NonZeroI64_le
impl Eq for NonZeroI64_le
Auto Trait Implementations§
impl Freeze for NonZeroI64_le
impl RefUnwindSafe for NonZeroI64_le
impl Send for NonZeroI64_le
impl Sync for NonZeroI64_le
impl Unpin for NonZeroI64_le
impl UnwindSafe for NonZeroI64_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