[][src]Struct secret_integers::I64

pub struct I64(pub i64);

Methods

impl I64[src]

pub fn classify<T: Into<i64>>(x: T) -> Self[src]

pub fn declassify(self) -> i64[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]

pub fn from_bytes_le(bytes: &[U8]) -> Vec<I64>[src]

pub fn to_bytes_le(ints: &[I64]) -> Vec<U8>[src]

pub fn from_bytes_be(bytes: &[U8]) -> Vec<I64>[src]

pub fn to_bytes_be(ints: &[I64]) -> Vec<U8>[src]

pub fn to_be_bytes(&self) -> Vec<u8>[src]

impl I64[src]

pub fn checked_add(self, rhs: Self) -> Self[src]

Warning: panics when overflow.

impl I64[src]

pub fn checked_sub(self, rhs: Self) -> Self[src]

Warning: panics when overflow.

impl I64[src]

pub fn checked_mul(self, rhs: Self) -> Self[src]

Warning: panics when overflow.

impl I64[src]

pub fn rotate_left(self, rotval: u32) -> Self[src]

pub fn rotate_right(self, rotval: u32) -> Self[src]

Trait Implementations

impl Add<I64> for I64[src]

Warning: has wrapping semantics.

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<I64> for I64[src]

Warning: has wrapping semantics.

impl BitAnd<I64> for I64[src]

type Output = Self

The resulting type after applying the & operator.

impl BitAndAssign<I64> for I64[src]

impl BitOr<I64> for I64[src]

type Output = Self

The resulting type after applying the | operator.

impl BitOrAssign<I64> for I64[src]

impl BitXor<I64> for I64[src]

type Output = Self

The resulting type after applying the ^ operator.

impl BitXorAssign<I64> for I64[src]

impl Clone for I64[src]

impl Copy for I64[src]

impl Debug for I64[src]

impl Default for I64[src]

impl Display for I64[src]

impl From<I128> for I64[src]

Warning: wrapping semantics.

impl From<I16> for I64[src]

impl From<I32> for I64[src]

impl From<I64> for I128[src]

impl From<I64> for I8[src]

Warning: wrapping semantics.

impl From<I64> for I16[src]

Warning: wrapping semantics.

impl From<I64> for I32[src]

Warning: wrapping semantics.

impl From<I8> for I64[src]

impl From<U64> for I64[src]

Warning: wrapping semantics.

impl From<i64> for I64[src]

impl LowerHex for I64[src]

impl Mul<I64> for I64[src]

Warning: has wrapping semantics.

type Output = Self

The resulting type after applying the * operator.

impl MulAssign<I64> for I64[src]

Warning: has wrapping semantics.

impl Neg for I64[src]

type Output = Self

The resulting type after applying the - operator.

impl Not for I64[src]

type Output = Self

The resulting type after applying the ! operator.

impl Shl<u32> for I64[src]

type Output = Self

The resulting type after applying the << operator.

impl ShlAssign<u32> for I64[src]

impl Shr<u32> for I64[src]

type Output = Self

The resulting type after applying the >> operator.

impl ShrAssign<u32> for I64[src]

impl Sub<I64> for I64[src]

Warning: has wrapping semantics.

type Output = Self

The resulting type after applying the - operator.

impl SubAssign<I64> for I64[src]

Warning: has wrapping semantics.

Auto Trait Implementations

impl RefUnwindSafe for I64

impl Send for I64

impl Sync for I64

impl Unpin for I64

impl UnwindSafe for I64

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.