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