Type Alias tracing::stdlib::os::raw::c_short

1.1.0 · source ·
pub type c_short = i16;
Expand description

Equivalent to C’s signed short (short) type.

This type will almost always be i16, but may differ on some esoteric systems. The C standard technically only requires that this type be a signed integer with at least 16 bits; some systems may define it as i32, for example.

Trait Implementations§

1.0.0 · source§

impl Add<&i16> for i16

§

type Output = <i16 as Add<i16>>::Output

The resulting type after applying the + operator.
source§

fn add(self, other: &i16) -> <i16 as Add<i16>>::Output

Performs the + operation. Read more
1.0.0 · source§

impl Add<i16> for i16

§

type Output = i16

The resulting type after applying the + operator.
source§

fn add(self, other: i16) -> i16

Performs the + operation. Read more
1.22.0 · source§

impl AddAssign<&i16> for i16

source§

fn add_assign(&mut self, other: &i16)

Performs the += operation. Read more
1.8.0 · source§

impl AddAssign<i16> for i16

source§

fn add_assign(&mut self, other: i16)

Performs the += operation. Read more
1.0.0 · source§

impl Binary for i16

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
1.0.0 · source§

impl BitAnd<&i16> for i16

§

type Output = <i16 as BitAnd<i16>>::Output

The resulting type after applying the & operator.
source§

fn bitand(self, other: &i16) -> <i16 as BitAnd<i16>>::Output

Performs the & operation. Read more
1.0.0 · source§

impl BitAnd<i16> for i16

§

type Output = i16

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: i16) -> i16

Performs the & operation. Read more
1.22.0 · source§

impl BitAndAssign<&i16> for i16

source§

fn bitand_assign(&mut self, other: &i16)

Performs the &= operation. Read more
1.8.0 · source§

impl BitAndAssign<i16> for i16

source§

fn bitand_assign(&mut self, other: i16)

Performs the &= operation. Read more
1.0.0 · source§

impl BitOr<&i16> for i16

§

type Output = <i16 as BitOr<i16>>::Output

The resulting type after applying the | operator.
source§

fn bitor(self, other: &i16) -> <i16 as BitOr<i16>>::Output

Performs the | operation. Read more
1.45.0 · source§

impl BitOr<NonZeroI16> for i16

§

type Output = NonZeroI16

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: NonZeroI16) -> <i16 as BitOr<NonZeroI16>>::Output

Performs the | operation. Read more
1.0.0 · source§

impl BitOr<i16> for i16

§

type Output = i16

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: i16) -> i16

Performs the | operation. Read more
1.22.0 · source§

impl BitOrAssign<&i16> for i16

source§

fn bitor_assign(&mut self, other: &i16)

Performs the |= operation. Read more
1.8.0 · source§

impl BitOrAssign<i16> for i16

source§

fn bitor_assign(&mut self, other: i16)

Performs the |= operation. Read more
1.0.0 · source§

impl BitXor<&i16> for i16

§

type Output = <i16 as BitXor<i16>>::Output

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: &i16) -> <i16 as BitXor<i16>>::Output

Performs the ^ operation. Read more
1.0.0 · source§

impl BitXor<i16> for i16

§

type Output = i16

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: i16) -> i16

Performs the ^ operation. Read more
1.22.0 · source§

impl BitXorAssign<&i16> for i16

source§

fn bitxor_assign(&mut self, other: &i16)

Performs the ^= operation. Read more
1.8.0 · source§

impl BitXorAssign<i16> for i16

source§

fn bitxor_assign(&mut self, other: i16)

Performs the ^= operation. Read more
1.0.0 · source§

impl Clone for i16

source§

fn clone(&self) -> i16

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.0.0 · source§

impl Debug for i16

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
1.0.0 · source§

impl Default for i16

source§

fn default() -> i16

Returns the default value of 0

1.0.0 · source§

impl Display for i16

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
1.0.0 · source§

impl Div<&i16> for i16

§

type Output = <i16 as Div<i16>>::Output

The resulting type after applying the / operator.
source§

fn div(self, other: &i16) -> <i16 as Div<i16>>::Output

Performs the / operation. Read more
1.0.0 · source§

impl Div<i16> for i16

This operation rounds towards zero, truncating any fractional part of the exact result.

Panics

This operation will panic if other == 0 or the division results in overflow.

§

type Output = i16

The resulting type after applying the / operator.
source§

fn div(self, other: i16) -> i16

Performs the / operation. Read more
1.22.0 · source§

impl DivAssign<&i16> for i16

source§

fn div_assign(&mut self, other: &i16)

Performs the /= operation. Read more
1.8.0 · source§

impl DivAssign<i16> for i16

source§

fn div_assign(&mut self, other: i16)

Performs the /= operation. Read more
1.31.0 · source§

impl From<NonZeroI16> for i16

source§

fn from(nonzero: NonZeroI16) -> i16

Converts a NonZeroI16 into an i16

1.28.0 · source§

impl From<bool> for i16

source§

fn from(small: bool) -> i16

Converts a bool to a i16. The resulting value is 0 for false and 1 for true values.

Examples
assert_eq!(i16::from(true), 1);
assert_eq!(i16::from(false), 0);
1.5.0 · source§

impl From<i8> for i16

source§

fn from(small: i8) -> i16

Converts i8 to i16 losslessly.

1.5.0 · source§

impl From<u8> for i16

source§

fn from(small: u8) -> i16

Converts u8 to i16 losslessly.

1.0.0 · source§

impl FromStr for i16

§

type Err = ParseIntError

The associated error which can be returned from parsing.
source§

fn from_str(src: &str) -> Result<i16, ParseIntError>

Parses a string s to return a value of this type. Read more
1.0.0 · source§

impl Hash for i16

source§

fn hash<H>(&self, state: &mut H)where H: Hasher,

Feeds this value into the given Hasher. Read more
source§

fn hash_slice<H>(data: &[i16], state: &mut H)where H: Hasher,

Feeds a slice of this type into the given Hasher. Read more
1.42.0 · source§

impl LowerExp for i16

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
1.0.0 · source§

impl LowerHex for i16

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
1.0.0 · source§

impl Mul<&i16> for i16

§

type Output = <i16 as Mul<i16>>::Output

The resulting type after applying the * operator.
source§

fn mul(self, other: &i16) -> <i16 as Mul<i16>>::Output

Performs the * operation. Read more
1.0.0 · source§

impl Mul<i16> for i16

§

type Output = i16

The resulting type after applying the * operator.
source§

fn mul(self, other: i16) -> i16

Performs the * operation. Read more
1.22.0 · source§

impl MulAssign<&i16> for i16

source§

fn mul_assign(&mut self, other: &i16)

Performs the *= operation. Read more
1.8.0 · source§

impl MulAssign<i16> for i16

source§

fn mul_assign(&mut self, other: i16)

Performs the *= operation. Read more
1.0.0 · source§

impl Neg for i16

§

type Output = i16

The resulting type after applying the - operator.
source§

fn neg(self) -> i16

Performs the unary - operation. Read more
1.0.0 · source§

impl Not for i16

§

type Output = i16

The resulting type after applying the ! operator.
source§

fn not(self) -> i16

Performs the unary ! operation. Read more
1.0.0 · source§

impl Octal for i16

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
1.0.0 · source§

impl Ord for i16

source§

fn cmp(&self, other: &i16) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
1.0.0 · source§

impl PartialEq<i16> for i16

source§

fn eq(&self, other: &i16) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &i16) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · source§

impl PartialOrd<i16> for i16

source§

fn partial_cmp(&self, other: &i16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &i16) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &i16) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &i16) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &i16) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.12.0 · source§

impl<'a> Product<&'a i16> for i16

source§

fn product<I>(iter: I) -> i16where I: Iterator<Item = &'a i16>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
1.12.0 · source§

impl Product<i16> for i16

source§

fn product<I>(iter: I) -> i16where I: Iterator<Item = i16>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
1.0.0 · source§

impl Rem<&i16> for i16

§

type Output = <i16 as Rem<i16>>::Output

The resulting type after applying the % operator.
source§

fn rem(self, other: &i16) -> <i16 as Rem<i16>>::Output

Performs the % operation. Read more
1.0.0 · source§

impl Rem<i16> for i16

This operation satisfies n % d == n - (n / d) * d. The result has the same sign as the left operand.

Panics

This operation will panic if other == 0 or if self / other results in overflow.

§

type Output = i16

The resulting type after applying the % operator.
source§

fn rem(self, other: i16) -> i16

Performs the % operation. Read more
1.22.0 · source§

impl RemAssign<&i16> for i16

source§

fn rem_assign(&mut self, other: &i16)

Performs the %= operation. Read more
1.8.0 · source§

impl RemAssign<i16> for i16

source§

fn rem_assign(&mut self, other: i16)

Performs the %= operation. Read more
1.0.0 · source§

impl Shl<&i128> for i16

§

type Output = <i16 as Shl<i128>>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &i128) -> <i16 as Shl<i128>>::Output

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&i16> for i16

§

type Output = <i16 as Shl<i16>>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &i16) -> <i16 as Shl<i16>>::Output

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&i32> for i16

§

type Output = <i16 as Shl<i32>>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &i32) -> <i16 as Shl<i32>>::Output

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&i64> for i16

§

type Output = <i16 as Shl<i64>>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &i64) -> <i16 as Shl<i64>>::Output

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&i8> for i16

§

type Output = <i16 as Shl<i8>>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &i8) -> <i16 as Shl<i8>>::Output

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&isize> for i16

§

type Output = <i16 as Shl<isize>>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &isize) -> <i16 as Shl<isize>>::Output

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&u128> for i16

§

type Output = <i16 as Shl<u128>>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &u128) -> <i16 as Shl<u128>>::Output

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&u16> for i16

§

type Output = <i16 as Shl<u16>>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &u16) -> <i16 as Shl<u16>>::Output

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&u32> for i16

§

type Output = <i16 as Shl<u32>>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &u32) -> <i16 as Shl<u32>>::Output

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&u64> for i16

§

type Output = <i16 as Shl<u64>>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &u64) -> <i16 as Shl<u64>>::Output

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&u8> for i16

§

type Output = <i16 as Shl<u8>>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &u8) -> <i16 as Shl<u8>>::Output

Performs the << operation. Read more
1.0.0 · source§

impl Shl<&usize> for i16

§

type Output = <i16 as Shl<usize>>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &usize) -> <i16 as Shl<usize>>::Output

Performs the << operation. Read more
1.0.0 · source§

impl Shl<i128> for i16

§

type Output = i16

The resulting type after applying the << operator.
source§

fn shl(self, other: i128) -> i16

Performs the << operation. Read more
1.0.0 · source§

impl Shl<i16> for i16

§

type Output = i16

The resulting type after applying the << operator.
source§

fn shl(self, other: i16) -> i16

Performs the << operation. Read more
1.0.0 · source§

impl Shl<i32> for i16

§

type Output = i16

The resulting type after applying the << operator.
source§

fn shl(self, other: i32) -> i16

Performs the << operation. Read more
1.0.0 · source§

impl Shl<i64> for i16

§

type Output = i16

The resulting type after applying the << operator.
source§

fn shl(self, other: i64) -> i16

Performs the << operation. Read more
1.0.0 · source§

impl Shl<i8> for i16

§

type Output = i16

The resulting type after applying the << operator.
source§

fn shl(self, other: i8) -> i16

Performs the << operation. Read more
1.0.0 · source§

impl Shl<isize> for i16

§

type Output = i16

The resulting type after applying the << operator.
source§

fn shl(self, other: isize) -> i16

Performs the << operation. Read more
1.0.0 · source§

impl Shl<u128> for i16

§

type Output = i16

The resulting type after applying the << operator.
source§

fn shl(self, other: u128) -> i16

Performs the << operation. Read more
1.0.0 · source§

impl Shl<u16> for i16

§

type Output = i16

The resulting type after applying the << operator.
source§

fn shl(self, other: u16) -> i16

Performs the << operation. Read more
1.0.0 · source§

impl Shl<u32> for i16

§

type Output = i16

The resulting type after applying the << operator.
source§

fn shl(self, other: u32) -> i16

Performs the << operation. Read more
1.0.0 · source§

impl Shl<u64> for i16

§

type Output = i16

The resulting type after applying the << operator.
source§

fn shl(self, other: u64) -> i16

Performs the << operation. Read more
1.0.0 · source§

impl Shl<u8> for i16

§

type Output = i16

The resulting type after applying the << operator.
source§

fn shl(self, other: u8) -> i16

Performs the << operation. Read more
1.0.0 · source§

impl Shl<usize> for i16

§

type Output = i16

The resulting type after applying the << operator.
source§

fn shl(self, other: usize) -> i16

Performs the << operation. Read more
1.22.0 · source§

impl ShlAssign<&i128> for i16

source§

fn shl_assign(&mut self, other: &i128)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&i16> for i16

source§

fn shl_assign(&mut self, other: &i16)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&i32> for i16

source§

fn shl_assign(&mut self, other: &i32)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&i64> for i16

source§

fn shl_assign(&mut self, other: &i64)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&i8> for i16

source§

fn shl_assign(&mut self, other: &i8)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&isize> for i16

source§

fn shl_assign(&mut self, other: &isize)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&u128> for i16

source§

fn shl_assign(&mut self, other: &u128)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&u16> for i16

source§

fn shl_assign(&mut self, other: &u16)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&u32> for i16

source§

fn shl_assign(&mut self, other: &u32)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&u64> for i16

source§

fn shl_assign(&mut self, other: &u64)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&u8> for i16

source§

fn shl_assign(&mut self, other: &u8)

Performs the <<= operation. Read more
1.22.0 · source§

impl ShlAssign<&usize> for i16

source§

fn shl_assign(&mut self, other: &usize)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<i128> for i16

source§

fn shl_assign(&mut self, other: i128)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<i16> for i16

source§

fn shl_assign(&mut self, other: i16)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<i32> for i16

source§

fn shl_assign(&mut self, other: i32)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<i64> for i16

source§

fn shl_assign(&mut self, other: i64)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<i8> for i16

source§

fn shl_assign(&mut self, other: i8)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<isize> for i16

source§

fn shl_assign(&mut self, other: isize)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<u128> for i16

source§

fn shl_assign(&mut self, other: u128)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<u16> for i16

source§

fn shl_assign(&mut self, other: u16)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<u32> for i16

source§

fn shl_assign(&mut self, other: u32)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<u64> for i16

source§

fn shl_assign(&mut self, other: u64)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<u8> for i16

source§

fn shl_assign(&mut self, other: u8)

Performs the <<= operation. Read more
1.8.0 · source§

impl ShlAssign<usize> for i16

source§

fn shl_assign(&mut self, other: usize)

Performs the <<= operation. Read more
1.0.0 · source§

impl Shr<&i128> for i16

§

type Output = <i16 as Shr<i128>>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &i128) -> <i16 as Shr<i128>>::Output

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&i16> for i16

§

type Output = <i16 as Shr<i16>>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &i16) -> <i16 as Shr<i16>>::Output

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&i32> for i16

§

type Output = <i16 as Shr<i32>>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &i32) -> <i16 as Shr<i32>>::Output

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&i64> for i16

§

type Output = <i16 as Shr<i64>>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &i64) -> <i16 as Shr<i64>>::Output

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&i8> for i16

§

type Output = <i16 as Shr<i8>>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &i8) -> <i16 as Shr<i8>>::Output

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&isize> for i16

§

type Output = <i16 as Shr<isize>>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &isize) -> <i16 as Shr<isize>>::Output

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&u128> for i16

§

type Output = <i16 as Shr<u128>>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &u128) -> <i16 as Shr<u128>>::Output

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&u16> for i16

§

type Output = <i16 as Shr<u16>>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &u16) -> <i16 as Shr<u16>>::Output

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&u32> for i16

§

type Output = <i16 as Shr<u32>>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &u32) -> <i16 as Shr<u32>>::Output

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&u64> for i16

§

type Output = <i16 as Shr<u64>>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &u64) -> <i16 as Shr<u64>>::Output

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&u8> for i16

§

type Output = <i16 as Shr<u8>>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &u8) -> <i16 as Shr<u8>>::Output

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<&usize> for i16

§

type Output = <i16 as Shr<usize>>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &usize) -> <i16 as Shr<usize>>::Output

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<i128> for i16

§

type Output = i16

The resulting type after applying the >> operator.
source§

fn shr(self, other: i128) -> i16

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<i16> for i16

§

type Output = i16

The resulting type after applying the >> operator.
source§

fn shr(self, other: i16) -> i16

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<i32> for i16

§

type Output = i16

The resulting type after applying the >> operator.
source§

fn shr(self, other: i32) -> i16

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<i64> for i16

§

type Output = i16

The resulting type after applying the >> operator.
source§

fn shr(self, other: i64) -> i16

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<i8> for i16

§

type Output = i16

The resulting type after applying the >> operator.
source§

fn shr(self, other: i8) -> i16

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<isize> for i16

§

type Output = i16

The resulting type after applying the >> operator.
source§

fn shr(self, other: isize) -> i16

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<u128> for i16

§

type Output = i16

The resulting type after applying the >> operator.
source§

fn shr(self, other: u128) -> i16

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<u16> for i16

§

type Output = i16

The resulting type after applying the >> operator.
source§

fn shr(self, other: u16) -> i16

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<u32> for i16

§

type Output = i16

The resulting type after applying the >> operator.
source§

fn shr(self, other: u32) -> i16

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<u64> for i16

§

type Output = i16

The resulting type after applying the >> operator.
source§

fn shr(self, other: u64) -> i16

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<u8> for i16

§

type Output = i16

The resulting type after applying the >> operator.
source§

fn shr(self, other: u8) -> i16

Performs the >> operation. Read more
1.0.0 · source§

impl Shr<usize> for i16

§

type Output = i16

The resulting type after applying the >> operator.
source§

fn shr(self, other: usize) -> i16

Performs the >> operation. Read more
1.22.0 · source§

impl ShrAssign<&i128> for i16

source§

fn shr_assign(&mut self, other: &i128)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&i16> for i16

source§

fn shr_assign(&mut self, other: &i16)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&i32> for i16

source§

fn shr_assign(&mut self, other: &i32)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&i64> for i16

source§

fn shr_assign(&mut self, other: &i64)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&i8> for i16

source§

fn shr_assign(&mut self, other: &i8)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&isize> for i16

source§

fn shr_assign(&mut self, other: &isize)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&u128> for i16

source§

fn shr_assign(&mut self, other: &u128)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&u16> for i16

source§

fn shr_assign(&mut self, other: &u16)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&u32> for i16

source§

fn shr_assign(&mut self, other: &u32)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&u64> for i16

source§

fn shr_assign(&mut self, other: &u64)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&u8> for i16

source§

fn shr_assign(&mut self, other: &u8)

Performs the >>= operation. Read more
1.22.0 · source§

impl ShrAssign<&usize> for i16

source§

fn shr_assign(&mut self, other: &usize)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<i128> for i16

source§

fn shr_assign(&mut self, other: i128)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<i16> for i16

source§

fn shr_assign(&mut self, other: i16)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<i32> for i16

source§

fn shr_assign(&mut self, other: i32)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<i64> for i16

source§

fn shr_assign(&mut self, other: i64)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<i8> for i16

source§

fn shr_assign(&mut self, other: i8)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<isize> for i16

source§

fn shr_assign(&mut self, other: isize)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<u128> for i16

source§

fn shr_assign(&mut self, other: u128)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<u16> for i16

source§

fn shr_assign(&mut self, other: u16)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<u32> for i16

source§

fn shr_assign(&mut self, other: u32)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<u64> for i16

source§

fn shr_assign(&mut self, other: u64)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<u8> for i16

source§

fn shr_assign(&mut self, other: u8)

Performs the >>= operation. Read more
1.8.0 · source§

impl ShrAssign<usize> for i16

source§

fn shr_assign(&mut self, other: usize)

Performs the >>= operation. Read more
source§

impl SimdElement for i16

§

type Mask = i16

🔬This is a nightly-only experimental API. (portable_simd #86656)
The mask element type corresponding to this element type.
source§

impl Step for i16

source§

unsafe fn forward_unchecked(start: i16, n: usize) -> i16

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the value that would be obtained by taking the successor of self count times. Read more
source§

unsafe fn backward_unchecked(start: i16, n: usize) -> i16

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the value that would be obtained by taking the predecessor of self count times. Read more
source§

fn forward(start: i16, n: usize) -> i16

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the value that would be obtained by taking the successor of self count times. Read more
source§

fn backward(start: i16, n: usize) -> i16

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the value that would be obtained by taking the predecessor of self count times. Read more
source§

fn steps_between(start: &i16, end: &i16) -> Option<usize>

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the number of successor steps required to get from start to end. Read more
source§

fn forward_checked(start: i16, n: usize) -> Option<i16>

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the value that would be obtained by taking the successor of self count times. Read more
source§

fn backward_checked(start: i16, n: usize) -> Option<i16>

🔬This is a nightly-only experimental API. (step_trait #42168)
Returns the value that would be obtained by taking the predecessor of self count times. Read more
1.0.0 · source§

impl Sub<&i16> for i16

§

type Output = <i16 as Sub<i16>>::Output

The resulting type after applying the - operator.
source§

fn sub(self, other: &i16) -> <i16 as Sub<i16>>::Output

Performs the - operation. Read more
1.0.0 · source§

impl Sub<i16> for i16

§

type Output = i16

The resulting type after applying the - operator.
source§

fn sub(self, other: i16) -> i16

Performs the - operation. Read more
1.22.0 · source§

impl SubAssign<&i16> for i16

source§

fn sub_assign(&mut self, other: &i16)

Performs the -= operation. Read more
1.8.0 · source§

impl SubAssign<i16> for i16

source§

fn sub_assign(&mut self, other: i16)

Performs the -= operation. Read more
1.12.0 · source§

impl<'a> Sum<&'a i16> for i16

source§

fn sum<I>(iter: I) -> i16where I: Iterator<Item = &'a i16>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
1.12.0 · source§

impl Sum<i16> for i16

source§

fn sum<I>(iter: I) -> i16where I: Iterator<Item = i16>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
1.34.0 · source§

impl TryFrom<i128> for i16

source§

fn try_from(u: i128) -> Result<i16, <i16 as TryFrom<i128>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i32> for i16

source§

fn try_from(u: i32) -> Result<i16, <i16 as TryFrom<i32>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<i64> for i16

source§

fn try_from(u: i64) -> Result<i16, <i16 as TryFrom<i64>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<isize> for i16

source§

fn try_from(u: isize) -> Result<i16, <i16 as TryFrom<isize>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u128> for i16

source§

fn try_from(u: u128) -> Result<i16, <i16 as TryFrom<u128>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u16> for i16

source§

fn try_from(u: u16) -> Result<i16, <i16 as TryFrom<u16>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u32> for i16

source§

fn try_from(u: u32) -> Result<i16, <i16 as TryFrom<u32>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<u64> for i16

source§

fn try_from(u: u64) -> Result<i16, <i16 as TryFrom<u64>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.34.0 · source§

impl TryFrom<usize> for i16

source§

fn try_from(u: usize) -> Result<i16, <i16 as TryFrom<usize>>::Error>

Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.

§

type Error = TryFromIntError

The type returned in the event of a conversion error.
1.42.0 · source§

impl UpperExp for i16

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
1.0.0 · source§

impl UpperHex for i16

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter.
source§

impl Value for i16

source§

fn record(&self, key: &Field, visitor: &mut dyn Visit)

Visits this value with the given Visitor.
source§

impl ConstParamTy for i16

1.0.0 · source§

impl Copy for i16

1.0.0 · source§

impl Eq for i16

source§

impl MaskElement for i16

source§

impl SimdCast for i16

source§

impl StructuralEq for i16

source§

impl StructuralPartialEq for i16

source§

impl TrustedStep for i16