Struct sign_bound::NegativeI16
source · #[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 abs(self) -> PositiveI16
pub const fn unsigned_abs(self) -> u16
pub const fn checked_abs(self) -> Option<PositiveI16>
pub const fn checked_neg(self) -> Option<PositiveI16>
pub const fn checked_sub(self, other: Self) -> Option<Self>
pub const fn checked_mul(self, other: PositiveI16) -> Option<Self>
pub const fn saturating_abs(self) -> PositiveI16
pub const fn saturating_neg(self) -> PositiveI16
pub const fn saturating_sub(self, other: Self) -> Self
pub const fn saturating_mul(self, other: PositiveI16) -> Self
Trait Implementations§
source§impl Binary for NegativeI16
impl Binary for NegativeI16
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<i16> for NegativeI16
impl BitOr<i16> for NegativeI16
source§impl BitOr for NegativeI16
impl BitOr for NegativeI16
source§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 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 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 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<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
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)