#[repr(C, align(2))]pub struct NegativeI16 { /* private fields */ }Implementations§
Source§impl NegativeI16
impl NegativeI16
pub const BITS: u32 = 16u32
pub const MIN: Self = _
pub const MAX: Self = _
pub const fn new(value: i16) -> Option<Self>
pub const unsafe fn new_unchecked(value: i16) -> Self
pub const fn get(self) -> i16
pub const fn count_zeros(self) -> u32
pub const fn count_ones(self) -> u32
pub const fn leading_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
pub const fn checked_abs(self) -> Option<PositiveI16>
pub const fn checked_neg(self) -> Option<PositiveI16>
pub const fn checked_add(self, other: Self) -> Option<Self>
pub const fn checked_sub(self, other: Self) -> Option<Self>
pub const fn checked_mul(self, other: Self) -> Option<PositiveI16>
pub const fn checked_mul_positive(self, other: PositiveI16) -> Option<Self>
pub const fn checked_div(self, other: Self) -> Option<PositiveI16>
pub const fn checked_div_euclid(self, other: Self) -> Option<PositiveI16>
pub const fn checked_rem_euclid(self, other: i16) -> Option<PositiveI16>
pub const fn saturating_abs(self) -> PositiveI16
pub const fn saturating_neg(self) -> PositiveI16
pub const fn saturating_add(self, other: Self) -> Self
pub const fn saturating_sub(self, other: Self) -> Self
pub const fn saturating_mul(self, other: Self) -> PositiveI16
pub const fn saturating_mul_positive(self, other: PositiveI16) -> Self
Trait Implementations§
Source§impl Binary for NegativeI16
impl Binary for NegativeI16
Source§impl BitAnd<NegativeI16> for PositiveI16
impl BitAnd<NegativeI16> for PositiveI16
Source§type Output = PositiveI16
type Output = PositiveI16
The resulting type after applying the
& operator.Source§impl BitAnd<PositiveI16> for NegativeI16
impl BitAnd<PositiveI16> for NegativeI16
Source§type Output = PositiveI16
type Output = PositiveI16
The resulting type after applying the
& operator.Source§impl BitAnd for NegativeI16
impl BitAnd for NegativeI16
Source§impl BitAndAssign<NegativeI16> for PositiveI16
impl BitAndAssign<NegativeI16> for PositiveI16
Source§fn bitand_assign(&mut self, rhs: NegativeI16)
fn bitand_assign(&mut self, rhs: NegativeI16)
Performs the
&= operation. Read moreSource§impl BitAndAssign for NegativeI16
impl BitAndAssign for NegativeI16
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr<NegativeI16> for PositiveI16
impl BitOr<NegativeI16> for PositiveI16
Source§type Output = NegativeI16
type Output = NegativeI16
The resulting type after applying the
| operator.Source§impl BitOr<NegativeI16> for i16
impl BitOr<NegativeI16> for i16
Source§type Output = NegativeI16
type Output = NegativeI16
The resulting type after applying the
| operator.Source§impl BitOr<PositiveI16> for NegativeI16
impl BitOr<PositiveI16> for NegativeI16
Source§type Output = NegativeI16
type Output = NegativeI16
The resulting type after applying the
| operator.Source§impl BitOr<i16> for NegativeI16
impl BitOr<i16> for NegativeI16
Source§impl BitOr for NegativeI16
impl BitOr for NegativeI16
Source§impl BitOrAssign<PositiveI16> for NegativeI16
impl BitOrAssign<PositiveI16> for NegativeI16
Source§fn bitor_assign(&mut self, rhs: PositiveI16)
fn bitor_assign(&mut self, rhs: PositiveI16)
Performs the
|= operation. Read moreSource§impl BitOrAssign<i16> for NegativeI16
impl BitOrAssign<i16> for NegativeI16
Source§fn bitor_assign(&mut self, rhs: i16)
fn bitor_assign(&mut self, rhs: i16)
Performs the
|= operation. Read moreSource§impl BitOrAssign for NegativeI16
impl BitOrAssign for NegativeI16
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor<NegativeI16> for PositiveI16
impl BitXor<NegativeI16> for PositiveI16
Source§type Output = NegativeI16
type Output = NegativeI16
The resulting type after applying the
^ operator.Source§impl BitXor<PositiveI16> for NegativeI16
impl BitXor<PositiveI16> for NegativeI16
Source§type Output = NegativeI16
type Output = NegativeI16
The resulting type after applying the
^ operator.Source§impl BitXor for NegativeI16
impl BitXor for NegativeI16
Source§impl BitXorAssign<PositiveI16> for NegativeI16
impl BitXorAssign<PositiveI16> for NegativeI16
Source§fn bitxor_assign(&mut self, rhs: PositiveI16)
fn bitxor_assign(&mut self, rhs: PositiveI16)
Performs the
^= operation. Read moreSource§impl Clone for NegativeI16
impl Clone for NegativeI16
Source§fn clone(&self) -> NegativeI16
fn clone(&self) -> NegativeI16
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NegativeI16
impl Debug for NegativeI16
Source§impl Display for NegativeI16
impl Display for NegativeI16
Source§impl From<NegativeI16> for i128
impl From<NegativeI16> for i128
Source§fn from(value: NegativeI16) -> Self
fn from(value: NegativeI16) -> Self
Converts to this type from the input type.
Source§impl From<NegativeI16> for i16
impl From<NegativeI16> for i16
Source§fn from(value: NegativeI16) -> Self
fn from(value: NegativeI16) -> Self
Converts to this type from the input type.
Source§impl From<NegativeI16> for i32
impl From<NegativeI16> for i32
Source§fn from(value: NegativeI16) -> Self
fn from(value: NegativeI16) -> Self
Converts to this type from the input type.
Source§impl From<NegativeI16> for i64
impl From<NegativeI16> for i64
Source§fn from(value: NegativeI16) -> Self
fn from(value: NegativeI16) -> Self
Converts to this type from the input type.
Source§impl From<NegativeI16> for isize
impl From<NegativeI16> for isize
Source§fn from(value: NegativeI16) -> Self
fn from(value: NegativeI16) -> Self
Converts to this type from the input type.
Source§impl FromStr for NegativeI16
impl FromStr for NegativeI16
Source§impl Hash for NegativeI16
impl Hash for NegativeI16
Source§impl LowerHex for NegativeI16
impl LowerHex for NegativeI16
Source§impl Not for NegativeI16
impl Not for NegativeI16
Source§impl Octal for NegativeI16
impl Octal for NegativeI16
Source§impl Ord for NegativeI16
impl Ord for NegativeI16
Source§impl PartialEq for NegativeI16
impl PartialEq for NegativeI16
Source§impl PartialOrd for NegativeI16
impl PartialOrd for NegativeI16
Source§impl TryFrom<NegativeI16> for i8
impl TryFrom<NegativeI16> for i8
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<i128> for NegativeI16
impl TryFrom<i128> for NegativeI16
Source§impl TryFrom<i16> for NegativeI16
impl TryFrom<i16> for NegativeI16
Source§impl TryFrom<i32> for NegativeI16
impl TryFrom<i32> for NegativeI16
Source§impl TryFrom<i64> for NegativeI16
impl TryFrom<i64> for NegativeI16
Source§impl TryFrom<i8> for NegativeI16
impl TryFrom<i8> for NegativeI16
Source§impl TryFrom<isize> for NegativeI16
impl TryFrom<isize> for NegativeI16
Source§impl UpperHex for NegativeI16
impl UpperHex for NegativeI16
impl Copy for NegativeI16
impl Eq for NegativeI16
Auto Trait Implementations§
impl Freeze for NegativeI16
impl RefUnwindSafe for NegativeI16
impl Send for NegativeI16
impl Sync for NegativeI16
impl Unpin for NegativeI16
impl UnwindSafe for NegativeI16
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