pub struct NonZeroI32_be(/* private fields */);Expand description
A big-endian NonZeroI32 with a guaranteed size and alignment of 4.
Implementations§
Source§impl NonZeroI32_be
impl NonZeroI32_be
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_be 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_be
impl Binary for NonZeroI32_be
Source§impl BitOr<&NonZeroI32_be> for &NonZeroI32_be
impl BitOr<&NonZeroI32_be> for &NonZeroI32_be
Source§impl BitOr<&NonZeroI32_be> for NonZeroI32
impl BitOr<&NonZeroI32_be> for NonZeroI32
Source§impl BitOr<&NonZeroI32_be> for NonZeroI32_be
impl BitOr<&NonZeroI32_be> for NonZeroI32_be
Source§impl BitOr<NonZeroI32_be> for &NonZeroI32_be
impl BitOr<NonZeroI32_be> for &NonZeroI32_be
Source§impl BitOr<NonZeroI32_be> for NonZeroI32
impl BitOr<NonZeroI32_be> for NonZeroI32
Source§impl BitOr for NonZeroI32_be
impl BitOr for NonZeroI32_be
Source§impl BitOrAssign<NonZero<i32>> for NonZeroI32_be
impl BitOrAssign<NonZero<i32>> for NonZeroI32_be
Source§fn bitor_assign(&mut self, other: NonZeroI32)
fn bitor_assign(&mut self, other: NonZeroI32)
Performs the
|= operation. Read moreSource§impl BitOrAssign for NonZeroI32_be
impl BitOrAssign for NonZeroI32_be
Source§fn bitor_assign(&mut self, other: NonZeroI32_be)
fn bitor_assign(&mut self, other: NonZeroI32_be)
Performs the
|= operation. Read moreSource§impl<C> CheckBytes<C> for NonZeroI32_be
Available on crate feature bytecheck only.
impl<C> CheckBytes<C> for NonZeroI32_be
Available on crate feature
bytecheck only.Source§impl Clone for NonZeroI32_be
impl Clone for NonZeroI32_be
Source§impl Debug for NonZeroI32_be
impl Debug for NonZeroI32_be
Source§impl Display for NonZeroI32_be
impl Display for NonZeroI32_be
Source§impl<'a> From<&'a NonZero<i32>> for NonZeroI32_be
impl<'a> From<&'a NonZero<i32>> for NonZeroI32_be
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_be> for NonZeroI32
impl<'a> From<&'a NonZeroI32_be> for NonZeroI32
Source§fn from(value: &'a NonZeroI32_be) -> Self
fn from(value: &'a NonZeroI32_be) -> Self
Converts to this type from the input type.
Source§impl From<NonZero<i32>> for NonZeroI32_be
impl From<NonZero<i32>> for NonZeroI32_be
Source§fn from(value: NonZeroI32) -> Self
fn from(value: NonZeroI32) -> Self
Converts to this type from the input type.
Source§impl From<NonZeroI32_be> for NonZeroI32
impl From<NonZeroI32_be> for NonZeroI32
Source§fn from(value: NonZeroI32_be) -> Self
fn from(value: NonZeroI32_be) -> Self
Converts to this type from the input type.
Source§impl Hash for NonZeroI32_be
impl Hash for NonZeroI32_be
Source§impl LowerHex for NonZeroI32_be
impl LowerHex for NonZeroI32_be
Source§impl Octal for NonZeroI32_be
impl Octal for NonZeroI32_be
Source§impl Ord for NonZeroI32_be
impl Ord for NonZeroI32_be
Source§impl PartialEq<NonZeroI32_be> for NonZeroI32
impl PartialEq<NonZeroI32_be> for NonZeroI32
Source§impl PartialEq for NonZeroI32_be
impl PartialEq for NonZeroI32_be
Source§impl PartialOrd<NonZero<i32>> for NonZeroI32_be
impl PartialOrd<NonZero<i32>> for NonZeroI32_be
Source§impl PartialOrd for NonZeroI32_be
impl PartialOrd for NonZeroI32_be
Source§impl UpperHex for NonZeroI32_be
impl UpperHex for NonZeroI32_be
impl Copy for NonZeroI32_be
impl Eq for NonZeroI32_be
Auto Trait Implementations§
impl Freeze for NonZeroI32_be
impl RefUnwindSafe for NonZeroI32_be
impl Send for NonZeroI32_be
impl Sync for NonZeroI32_be
impl Unpin for NonZeroI32_be
impl UnsafeUnpin for NonZeroI32_be
impl UnwindSafe for NonZeroI32_be
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