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