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