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