[−][src]Struct secret_integers::I16
Methods
impl I16
[src]
pub fn classify<T: Into<i16>>(x: T) -> Self
[src]
pub fn declassify(self) -> i16
[src]
Warning: use with caution, breaks the constant-time guarantee.
pub fn zero() -> Self
[src]
pub fn one() -> Self
[src]
pub fn ones() -> Self
[src]
impl I16
[src]
pub fn checked_add(self, rhs: Self) -> Self
[src]
Warning: panics when overflow.
impl I16
[src]
pub fn checked_sub(self, rhs: Self) -> Self
[src]
Warning: panics when overflow.
impl I16
[src]
pub fn checked_mul(self, rhs: Self) -> Self
[src]
Warning: panics when overflow.
impl I16
[src]
pub fn rotate_left(self, rotval: u32) -> Self
[src]
pub fn rotate_right(self, rotval: u32) -> Self
[src]
Trait Implementations
impl From<i16> for I16
[src]
impl From<I16> for I128
[src]
impl From<I128> for I16
[src]
Warning: wrapping semantics.
impl From<I16> for I64
[src]
impl From<I64> for I16
[src]
Warning: wrapping semantics.
impl From<I16> for I32
[src]
impl From<I32> for I16
[src]
Warning: wrapping semantics.
impl From<I8> for I16
[src]
impl From<I16> for I8
[src]
Warning: wrapping semantics.
impl From<U16> for I16
[src]
Warning: wrapping semantics.
impl Default for I16
[src]
impl Copy for I16
[src]
impl Clone for I16
[src]
fn clone(&self) -> I16
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Add<I16> for I16
[src]
Warning: has wrapping semantics.
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
impl Sub<I16> for I16
[src]
Warning: has wrapping semantics.
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
impl Mul<I16> for I16
[src]
Warning: has wrapping semantics.
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
impl Neg for I16
[src]
impl AddAssign<I16> for I16
[src]
Warning: has wrapping semantics.
fn add_assign(&mut self, rhs: Self)
[src]
impl SubAssign<I16> for I16
[src]
Warning: has wrapping semantics.
fn sub_assign(&mut self, rhs: Self)
[src]
impl MulAssign<I16> for I16
[src]
Warning: has wrapping semantics.
fn mul_assign(&mut self, rhs: Self)
[src]
impl Not for I16
[src]
impl BitAnd<I16> for I16
[src]
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, rhs: Self) -> Self
[src]
impl BitOr<I16> for I16
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self
[src]
impl BitXor<I16> for I16
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: Self) -> Self
[src]
impl Shl<u32> for I16
[src]
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, rhs: u32) -> Self
[src]
impl Shr<u32> for I16
[src]
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, rhs: u32) -> Self
[src]
impl BitAndAssign<I16> for I16
[src]
fn bitand_assign(&mut self, rhs: Self)
[src]
impl BitOrAssign<I16> for I16
[src]
fn bitor_assign(&mut self, rhs: Self)
[src]
impl BitXorAssign<I16> for I16
[src]
fn bitxor_assign(&mut self, rhs: Self)
[src]
impl ShlAssign<u32> for I16
[src]
fn shl_assign(&mut self, rhs: u32)
[src]
impl ShrAssign<u32> for I16
[src]
fn shr_assign(&mut self, rhs: u32)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,