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