Struct secret_integers::I64
source · [−]pub struct I64(pub i64);
Tuple Fields
0: i64
Implementations
sourceimpl I64
impl I64
pub fn classify<T: Into<i64>>(x: T) -> Self
sourcepub fn declassify(self) -> i64
pub fn declassify(self) -> i64
Warning: use with caution, breaks the constant-time guarantee.
pub fn zero() -> Self
pub fn one() -> Self
pub fn ones() -> Self
pub fn from_le_bytes(bytes: &[U8]) -> Vec<I64>
pub fn to_le_bytes(ints: &[I64]) -> Vec<U8>
pub fn from_be_bytes(bytes: &[U8]) -> Vec<I64>
pub fn to_be_bytes(ints: &[I64]) -> Vec<U8>
pub fn max_value() -> I64
sourceimpl I64
impl I64
sourcepub fn checked_add(self, rhs: Self) -> Self
pub fn checked_add(self, rhs: Self) -> Self
Warning: panics when overflow.
sourceimpl I64
impl I64
sourcepub fn checked_sub(self, rhs: Self) -> Self
pub fn checked_sub(self, rhs: Self) -> Self
Warning: panics when overflow.
sourceimpl I64
impl I64
sourcepub fn checked_mul(self, rhs: Self) -> Self
pub fn checked_mul(self, rhs: Self) -> Self
Warning: panics when overflow.
sourceimpl I64
impl I64
pub fn rotate_left(self, rotval: usize) -> Self
pub fn rotate_right(self, rotval: usize) -> Self
sourceimpl I64
impl I64
pub fn comp_eq(self, rhs: Self) -> Self
sourcepub fn comp_ne(self, rhs: Self) -> Self
pub fn comp_ne(self, rhs: Self) -> Self
Produces a new integer which is all ones if the first argument is different from the second argument, and all zeroes otherwise.
sourcepub fn comp_gte(self, rhs: Self) -> Self
pub fn comp_gte(self, rhs: Self) -> Self
Produces a new integer which is all ones if the first argument is greater than or equal to the second argument, and all zeroes otherwise. With inspiration from
sourcepub fn comp_gt(self, rhs: Self) -> Self
pub fn comp_gt(self, rhs: Self) -> Self
Produces a new integer which is all ones if the first argument is strictly greater than the second argument, and all zeroes otherwise.
Trait Implementations
sourceimpl AddAssign<I64> for I64
impl AddAssign<I64> for I64
Warning: has wrapping semantics.
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the +=
operation. Read more
sourceimpl BitAndAssign<I64> for I64
impl BitAndAssign<I64> for I64
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the &=
operation. Read more
sourceimpl BitOrAssign<I64> for I64
impl BitOrAssign<I64> for I64
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the |=
operation. Read more
sourceimpl BitXorAssign<I64> for I64
impl BitXorAssign<I64> for I64
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the ^=
operation. Read more
sourceimpl MulAssign<I64> for I64
impl MulAssign<I64> for I64
Warning: has wrapping semantics.
sourcefn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the *=
operation. Read more
sourceimpl ShlAssign<usize> for I64
impl ShlAssign<usize> for I64
sourcefn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
Performs the <<=
operation. Read more
sourceimpl ShrAssign<usize> for I64
impl ShrAssign<usize> for I64
sourcefn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
Performs the >>=
operation. Read more
sourceimpl SubAssign<I64> for I64
impl SubAssign<I64> for I64
Warning: has wrapping semantics.
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the -=
operation. Read more
impl Copy for I64
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more