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