[−][src]Struct secret_integers::U8
Methods
impl U8
[src]
pub fn classify<T: Into<u8>>(x: T) -> Self
[src]
pub fn declassify(self) -> u8
[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 U8
[src]
pub fn checked_add(self, rhs: Self) -> Self
[src]
Warning: panics when overflow.
impl U8
[src]
pub fn checked_sub(self, rhs: Self) -> Self
[src]
Warning: panics when overflow.
impl U8
[src]
pub fn checked_mul(self, rhs: Self) -> Self
[src]
Warning: panics when overflow.
impl U8
[src]
pub fn rotate_left(self, rotval: u32) -> Self
[src]
pub fn rotate_right(self, rotval: u32) -> Self
[src]
impl U8
[src]
pub fn comp_eq(self, rhs: Self) -> Self
[src]
Produces a new integer which is all ones if the two arguments are equal and all zeroes otherwise. With inspiration from Wireguard.
pub fn comp_ne(self, rhs: Self) -> Self
[src]
Produces a new integer which is all ones if the first argument is different from the second argument, and all zeroes otherwise.
pub fn comp_gte(self, rhs: Self) -> Self
[src]
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 WireGuard.
pub fn comp_gt(self, rhs: Self) -> Self
[src]
Produces a new integer which is all ones if the first argumentis strictly greater than the second argument, and all zeroes otherwise.
pub fn comp_lte(self, rhs: Self) -> Self
[src]
Produces a new integer which is all ones if the first argumentis less than or equal to the second argument, and all zeroes otherwise.
pub fn comp_lt(self, rhs: Self) -> Self
[src]
Produces a new integer which is all ones if the first argumentis strictly less than the second argument, and all zeroes otherwise.
Trait Implementations
impl From<u8> for U8
[src]
impl From<U8> for U128
[src]
impl From<U128> for U8
[src]
Warning: wrapping semantics.
impl From<U8> for U64
[src]
impl From<U64> for U8
[src]
Warning: wrapping semantics.
impl From<U8> for U32
[src]
impl From<U32> for U8
[src]
Warning: wrapping semantics.
impl From<U8> for U16
[src]
impl From<U16> for U8
[src]
Warning: wrapping semantics.
impl From<U8> for I8
[src]
Warning: wrapping semantics.
impl Default for U8
[src]
impl Copy for U8
[src]
impl Clone for U8
[src]
fn clone(&self) -> U8
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Add<U8> for U8
[src]
Warning: has wrapping semantics.
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
impl Sub<U8> for U8
[src]
Warning: has wrapping semantics.
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
impl Mul<U8> for U8
[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 U8
[src]
impl AddAssign<U8> for U8
[src]
Warning: has wrapping semantics.
fn add_assign(&mut self, rhs: Self)
[src]
impl SubAssign<U8> for U8
[src]
Warning: has wrapping semantics.
fn sub_assign(&mut self, rhs: Self)
[src]
impl MulAssign<U8> for U8
[src]
Warning: has wrapping semantics.
fn mul_assign(&mut self, rhs: Self)
[src]
impl Not for U8
[src]
impl BitAnd<U8> for U8
[src]
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, rhs: Self) -> Self
[src]
impl BitOr<U8> for U8
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self
[src]
impl BitXor<U8> for U8
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: Self) -> Self
[src]
impl Shl<u32> for U8
[src]
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, rhs: u32) -> Self
[src]
impl Shr<u32> for U8
[src]
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, rhs: u32) -> Self
[src]
impl BitAndAssign<U8> for U8
[src]
fn bitand_assign(&mut self, rhs: Self)
[src]
impl BitOrAssign<U8> for U8
[src]
fn bitor_assign(&mut self, rhs: Self)
[src]
impl BitXorAssign<U8> for U8
[src]
fn bitxor_assign(&mut self, rhs: Self)
[src]
impl ShlAssign<u32> for U8
[src]
fn shl_assign(&mut self, rhs: u32)
[src]
impl ShrAssign<u32> for U8
[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> 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>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,