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