[][src]Struct secret_integers::I16

pub struct 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_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.

impl Sub<I16> for I16[src]

Warning: has wrapping semantics.

type Output = Self

The resulting type after applying the - operator.

impl Mul<I16> for I16[src]

Warning: has wrapping semantics.

type Output = Self

The resulting type after applying the * operator.

impl Neg for I16[src]

type Output = Self

The resulting type after applying the - operator.

impl AddAssign<I16> for I16[src]

Warning: has wrapping semantics.

impl SubAssign<I16> for I16[src]

Warning: has wrapping semantics.

impl MulAssign<I16> for I16[src]

Warning: has wrapping semantics.

impl Not for I16[src]

type Output = Self

The resulting type after applying the ! operator.

impl BitAnd<I16> for I16[src]

type Output = Self

The resulting type after applying the & operator.

impl BitOr<I16> for I16[src]

type Output = Self

The resulting type after applying the | operator.

impl BitXor<I16> for I16[src]

type Output = Self

The resulting type after applying the ^ operator.

impl Shl<u32> for I16[src]

type Output = Self

The resulting type after applying the << operator.

impl Shr<u32> for I16[src]

type Output = Self

The resulting type after applying the >> operator.

impl BitAndAssign<I16> for I16[src]

impl BitOrAssign<I16> for I16[src]

impl BitXorAssign<I16> for I16[src]

impl ShlAssign<u32> for I16[src]

impl ShrAssign<u32> for I16[src]

Auto Trait Implementations

impl Send for I16

impl Sync for I16

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]