pbc_zk_core

Struct Sbi

source
pub struct Sbi<NT> { /* private fields */ }
Expand description

A secret-shared integer value.

§Fields:

  • NT: Public type of secret.
  • secret: NT, the value of the secret

Trait Implementations§

source§

impl<NT> Add for Sbi<NT>
where Wrapping<NT>: Add<Output = Wrapping<NT>>,

source§

type Output = Sbi<NT>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
source§

impl<NT> BitAnd for Sbi<NT>
where NT: BitAnd<Output = NT>,

source§

type Output = Sbi<NT>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
source§

impl<NT> BitOr for Sbi<NT>
where NT: BitOr<Output = NT>,

source§

type Output = Sbi<NT>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
source§

impl<NT> BitXor for Sbi<NT>
where NT: BitXor<Output = NT>,

source§

type Output = Sbi<NT>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
source§

impl<NT: Clone> Clone for Sbi<NT>

source§

fn clone(&self) -> Sbi<NT>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<NT: Debug> Debug for Sbi<NT>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<NT> From<NT> for Sbi<NT>

source§

fn from(secret: NT) -> Self

Converts to this type from the input type.
source§

impl From<Sbi<i128>> for Sbi<i16>

source§

fn from(secret: Sbi<i128>) -> Self

Cast to a Sbi<i16> from an Sbi<i128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i128>> for Sbi<i32>

source§

fn from(secret: Sbi<i128>) -> Self

Cast to a Sbi<i32> from an Sbi<i128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i128>> for Sbi<i64>

source§

fn from(secret: Sbi<i128>) -> Self

Cast to a Sbi<i64> from an Sbi<i128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i128>> for Sbi<i8>

source§

fn from(secret: Sbi<i128>) -> Self

Cast to a Sbi<i8> from an Sbi<i128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i128>> for Sbi<u128>

source§

fn from(secret: Sbi<i128>) -> Self

Cast to a Sbi<u128> from an Sbi<i128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i128>> for Sbi<u16>

source§

fn from(secret: Sbi<i128>) -> Self

Cast to a Sbi<u16> from an Sbi<i128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i128>> for Sbi<u32>

source§

fn from(secret: Sbi<i128>) -> Self

Cast to a Sbi<u32> from an Sbi<i128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i128>> for Sbi<u64>

source§

fn from(secret: Sbi<i128>) -> Self

Cast to a Sbi<u64> from an Sbi<i128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i128>> for Sbi<u8>

source§

fn from(secret: Sbi<i128>) -> Self

Cast to a Sbi<u8> from an Sbi<i128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i16>> for Sbi<i128>

source§

fn from(secret: Sbi<i16>) -> Self

Cast to a Sbi<i128> from an Sbi<i16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i16>> for Sbi<i32>

source§

fn from(secret: Sbi<i16>) -> Self

Cast to a Sbi<i32> from an Sbi<i16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i16>> for Sbi<i64>

source§

fn from(secret: Sbi<i16>) -> Self

Cast to a Sbi<i64> from an Sbi<i16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i16>> for Sbi<i8>

source§

fn from(secret: Sbi<i16>) -> Self

Cast to a Sbi<i8> from an Sbi<i16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i16>> for Sbi<u128>

source§

fn from(secret: Sbi<i16>) -> Self

Cast to a Sbi<u128> from an Sbi<i16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i16>> for Sbi<u16>

source§

fn from(secret: Sbi<i16>) -> Self

Cast to a Sbi<u16> from an Sbi<i16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i16>> for Sbi<u32>

source§

fn from(secret: Sbi<i16>) -> Self

Cast to a Sbi<u32> from an Sbi<i16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i16>> for Sbi<u64>

source§

fn from(secret: Sbi<i16>) -> Self

Cast to a Sbi<u64> from an Sbi<i16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i16>> for Sbi<u8>

source§

fn from(secret: Sbi<i16>) -> Self

Cast to a Sbi<u8> from an Sbi<i16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i32>> for Sbi<i128>

source§

fn from(secret: Sbi<i32>) -> Self

Cast to a Sbi<i128> from an Sbi<i32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i32>> for Sbi<i16>

source§

fn from(secret: Sbi<i32>) -> Self

Cast to a Sbi<i16> from an Sbi<i32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i32>> for Sbi<i64>

source§

fn from(secret: Sbi<i32>) -> Self

Cast to a Sbi<i64> from an Sbi<i32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i32>> for Sbi<i8>

source§

fn from(secret: Sbi<i32>) -> Self

Cast to a Sbi<i8> from an Sbi<i32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i32>> for Sbi<u128>

source§

fn from(secret: Sbi<i32>) -> Self

Cast to a Sbi<u128> from an Sbi<i32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i32>> for Sbi<u16>

source§

fn from(secret: Sbi<i32>) -> Self

Cast to a Sbi<u16> from an Sbi<i32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i32>> for Sbi<u32>

source§

fn from(secret: Sbi<i32>) -> Self

Cast to a Sbi<u32> from an Sbi<i32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i32>> for Sbi<u64>

source§

fn from(secret: Sbi<i32>) -> Self

Cast to a Sbi<u64> from an Sbi<i32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i32>> for Sbi<u8>

source§

fn from(secret: Sbi<i32>) -> Self

Cast to a Sbi<u8> from an Sbi<i32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i64>> for Sbi<i128>

source§

fn from(secret: Sbi<i64>) -> Self

Cast to a Sbi<i128> from an Sbi<i64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i64>> for Sbi<i16>

source§

fn from(secret: Sbi<i64>) -> Self

Cast to a Sbi<i16> from an Sbi<i64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i64>> for Sbi<i32>

source§

fn from(secret: Sbi<i64>) -> Self

Cast to a Sbi<i32> from an Sbi<i64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i64>> for Sbi<i8>

source§

fn from(secret: Sbi<i64>) -> Self

Cast to a Sbi<i8> from an Sbi<i64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i64>> for Sbi<u128>

source§

fn from(secret: Sbi<i64>) -> Self

Cast to a Sbi<u128> from an Sbi<i64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i64>> for Sbi<u16>

source§

fn from(secret: Sbi<i64>) -> Self

Cast to a Sbi<u16> from an Sbi<i64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i64>> for Sbi<u32>

source§

fn from(secret: Sbi<i64>) -> Self

Cast to a Sbi<u32> from an Sbi<i64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i64>> for Sbi<u64>

source§

fn from(secret: Sbi<i64>) -> Self

Cast to a Sbi<u64> from an Sbi<i64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i64>> for Sbi<u8>

source§

fn from(secret: Sbi<i64>) -> Self

Cast to a Sbi<u8> from an Sbi<i64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i8>> for Sbi<i128>

source§

fn from(secret: Sbi<i8>) -> Self

Cast to a Sbi<i128> from an Sbi<i8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i8>> for Sbi<i16>

source§

fn from(secret: Sbi<i8>) -> Self

Cast to a Sbi<i16> from an Sbi<i8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i8>> for Sbi<i32>

source§

fn from(secret: Sbi<i8>) -> Self

Cast to a Sbi<i32> from an Sbi<i8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i8>> for Sbi<i64>

source§

fn from(secret: Sbi<i8>) -> Self

Cast to a Sbi<i64> from an Sbi<i8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i8>> for Sbi<u128>

source§

fn from(secret: Sbi<i8>) -> Self

Cast to a Sbi<u128> from an Sbi<i8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i8>> for Sbi<u16>

source§

fn from(secret: Sbi<i8>) -> Self

Cast to a Sbi<u16> from an Sbi<i8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i8>> for Sbi<u32>

source§

fn from(secret: Sbi<i8>) -> Self

Cast to a Sbi<u32> from an Sbi<i8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i8>> for Sbi<u64>

source§

fn from(secret: Sbi<i8>) -> Self

Cast to a Sbi<u64> from an Sbi<i8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<i8>> for Sbi<u8>

source§

fn from(secret: Sbi<i8>) -> Self

Cast to a Sbi<u8> from an Sbi<i8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u128>> for Sbi<i128>

source§

fn from(secret: Sbi<u128>) -> Self

Cast to a Sbi<i128> from an Sbi<u128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u128>> for Sbi<i16>

source§

fn from(secret: Sbi<u128>) -> Self

Cast to a Sbi<i16> from an Sbi<u128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u128>> for Sbi<i32>

source§

fn from(secret: Sbi<u128>) -> Self

Cast to a Sbi<i32> from an Sbi<u128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u128>> for Sbi<i64>

source§

fn from(secret: Sbi<u128>) -> Self

Cast to a Sbi<i64> from an Sbi<u128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u128>> for Sbi<i8>

source§

fn from(secret: Sbi<u128>) -> Self

Cast to a Sbi<i8> from an Sbi<u128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u128>> for Sbi<u16>

source§

fn from(secret: Sbi<u128>) -> Self

Cast to a Sbi<u16> from an Sbi<u128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u128>> for Sbi<u32>

source§

fn from(secret: Sbi<u128>) -> Self

Cast to a Sbi<u32> from an Sbi<u128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u128>> for Sbi<u64>

source§

fn from(secret: Sbi<u128>) -> Self

Cast to a Sbi<u64> from an Sbi<u128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u128>> for Sbi<u8>

source§

fn from(secret: Sbi<u128>) -> Self

Cast to a Sbi<u8> from an Sbi<u128>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u16>> for Sbi<i128>

source§

fn from(secret: Sbi<u16>) -> Self

Cast to a Sbi<i128> from an Sbi<u16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u16>> for Sbi<i16>

source§

fn from(secret: Sbi<u16>) -> Self

Cast to a Sbi<i16> from an Sbi<u16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u16>> for Sbi<i32>

source§

fn from(secret: Sbi<u16>) -> Self

Cast to a Sbi<i32> from an Sbi<u16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u16>> for Sbi<i64>

source§

fn from(secret: Sbi<u16>) -> Self

Cast to a Sbi<i64> from an Sbi<u16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u16>> for Sbi<i8>

source§

fn from(secret: Sbi<u16>) -> Self

Cast to a Sbi<i8> from an Sbi<u16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u16>> for Sbi<u128>

source§

fn from(secret: Sbi<u16>) -> Self

Cast to a Sbi<u128> from an Sbi<u16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u16>> for Sbi<u32>

source§

fn from(secret: Sbi<u16>) -> Self

Cast to a Sbi<u32> from an Sbi<u16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u16>> for Sbi<u64>

source§

fn from(secret: Sbi<u16>) -> Self

Cast to a Sbi<u64> from an Sbi<u16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u16>> for Sbi<u8>

source§

fn from(secret: Sbi<u16>) -> Self

Cast to a Sbi<u8> from an Sbi<u16>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u32>> for Sbi<i128>

source§

fn from(secret: Sbi<u32>) -> Self

Cast to a Sbi<i128> from an Sbi<u32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u32>> for Sbi<i16>

source§

fn from(secret: Sbi<u32>) -> Self

Cast to a Sbi<i16> from an Sbi<u32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u32>> for Sbi<i32>

source§

fn from(secret: Sbi<u32>) -> Self

Cast to a Sbi<i32> from an Sbi<u32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u32>> for Sbi<i64>

source§

fn from(secret: Sbi<u32>) -> Self

Cast to a Sbi<i64> from an Sbi<u32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u32>> for Sbi<i8>

source§

fn from(secret: Sbi<u32>) -> Self

Cast to a Sbi<i8> from an Sbi<u32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u32>> for Sbi<u128>

source§

fn from(secret: Sbi<u32>) -> Self

Cast to a Sbi<u128> from an Sbi<u32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u32>> for Sbi<u16>

source§

fn from(secret: Sbi<u32>) -> Self

Cast to a Sbi<u16> from an Sbi<u32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u32>> for Sbi<u64>

source§

fn from(secret: Sbi<u32>) -> Self

Cast to a Sbi<u64> from an Sbi<u32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u32>> for Sbi<u8>

source§

fn from(secret: Sbi<u32>) -> Self

Cast to a Sbi<u8> from an Sbi<u32>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u64>> for Sbi<i128>

source§

fn from(secret: Sbi<u64>) -> Self

Cast to a Sbi<i128> from an Sbi<u64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u64>> for Sbi<i16>

source§

fn from(secret: Sbi<u64>) -> Self

Cast to a Sbi<i16> from an Sbi<u64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u64>> for Sbi<i32>

source§

fn from(secret: Sbi<u64>) -> Self

Cast to a Sbi<i32> from an Sbi<u64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u64>> for Sbi<i64>

source§

fn from(secret: Sbi<u64>) -> Self

Cast to a Sbi<i64> from an Sbi<u64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u64>> for Sbi<i8>

source§

fn from(secret: Sbi<u64>) -> Self

Cast to a Sbi<i8> from an Sbi<u64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u64>> for Sbi<u128>

source§

fn from(secret: Sbi<u64>) -> Self

Cast to a Sbi<u128> from an Sbi<u64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u64>> for Sbi<u16>

source§

fn from(secret: Sbi<u64>) -> Self

Cast to a Sbi<u16> from an Sbi<u64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u64>> for Sbi<u32>

source§

fn from(secret: Sbi<u64>) -> Self

Cast to a Sbi<u32> from an Sbi<u64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u64>> for Sbi<u8>

source§

fn from(secret: Sbi<u64>) -> Self

Cast to a Sbi<u8> from an Sbi<u64>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u8>> for Sbi<i128>

source§

fn from(secret: Sbi<u8>) -> Self

Cast to a Sbi<i128> from an Sbi<u8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u8>> for Sbi<i16>

source§

fn from(secret: Sbi<u8>) -> Self

Cast to a Sbi<i16> from an Sbi<u8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u8>> for Sbi<i32>

source§

fn from(secret: Sbi<u8>) -> Self

Cast to a Sbi<i32> from an Sbi<u8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u8>> for Sbi<i64>

source§

fn from(secret: Sbi<u8>) -> Self

Cast to a Sbi<i64> from an Sbi<u8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u8>> for Sbi<i8>

source§

fn from(secret: Sbi<u8>) -> Self

Cast to a Sbi<i8> from an Sbi<u8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u8>> for Sbi<u128>

source§

fn from(secret: Sbi<u8>) -> Self

Cast to a Sbi<u128> from an Sbi<u8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u8>> for Sbi<u16>

source§

fn from(secret: Sbi<u8>) -> Self

Cast to a Sbi<u16> from an Sbi<u8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u8>> for Sbi<u32>

source§

fn from(secret: Sbi<u8>) -> Self

Cast to a Sbi<u32> from an Sbi<u8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<Sbi<u8>> for Sbi<u64>

source§

fn from(secret: Sbi<u8>) -> Self

Cast to a Sbi<u64> from an Sbi<u8>.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i128> for Sbi<i16>

source§

fn from(secret: i128) -> Self

Create a secret Sbi<i16> from an i128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i128> for Sbi<i32>

source§

fn from(secret: i128) -> Self

Create a secret Sbi<i32> from an i128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i128> for Sbi<i64>

source§

fn from(secret: i128) -> Self

Create a secret Sbi<i64> from an i128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i128> for Sbi<i8>

source§

fn from(secret: i128) -> Self

Create a secret Sbi<i8> from an i128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i128> for Sbi<u128>

source§

fn from(secret: i128) -> Self

Create a secret Sbi<u128> from an i128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i128> for Sbi<u16>

source§

fn from(secret: i128) -> Self

Create a secret Sbi<u16> from an i128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i128> for Sbi<u32>

source§

fn from(secret: i128) -> Self

Create a secret Sbi<u32> from an i128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i128> for Sbi<u64>

source§

fn from(secret: i128) -> Self

Create a secret Sbi<u64> from an i128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i128> for Sbi<u8>

source§

fn from(secret: i128) -> Self

Create a secret Sbi<u8> from an i128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i16> for Sbi<i128>

source§

fn from(secret: i16) -> Self

Create a secret Sbi<i128> from an i16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i16> for Sbi<i32>

source§

fn from(secret: i16) -> Self

Create a secret Sbi<i32> from an i16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i16> for Sbi<i64>

source§

fn from(secret: i16) -> Self

Create a secret Sbi<i64> from an i16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i16> for Sbi<i8>

source§

fn from(secret: i16) -> Self

Create a secret Sbi<i8> from an i16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i16> for Sbi<u128>

source§

fn from(secret: i16) -> Self

Create a secret Sbi<u128> from an i16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i16> for Sbi<u16>

source§

fn from(secret: i16) -> Self

Create a secret Sbi<u16> from an i16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i16> for Sbi<u32>

source§

fn from(secret: i16) -> Self

Create a secret Sbi<u32> from an i16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i16> for Sbi<u64>

source§

fn from(secret: i16) -> Self

Create a secret Sbi<u64> from an i16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i16> for Sbi<u8>

source§

fn from(secret: i16) -> Self

Create a secret Sbi<u8> from an i16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i32> for Sbi<i128>

source§

fn from(secret: i32) -> Self

Create a secret Sbi<i128> from an i32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i32> for Sbi<i16>

source§

fn from(secret: i32) -> Self

Create a secret Sbi<i16> from an i32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i32> for Sbi<i64>

source§

fn from(secret: i32) -> Self

Create a secret Sbi<i64> from an i32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i32> for Sbi<i8>

source§

fn from(secret: i32) -> Self

Create a secret Sbi<i8> from an i32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i32> for Sbi<u128>

source§

fn from(secret: i32) -> Self

Create a secret Sbi<u128> from an i32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i32> for Sbi<u16>

source§

fn from(secret: i32) -> Self

Create a secret Sbi<u16> from an i32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i32> for Sbi<u32>

source§

fn from(secret: i32) -> Self

Create a secret Sbi<u32> from an i32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i32> for Sbi<u64>

source§

fn from(secret: i32) -> Self

Create a secret Sbi<u64> from an i32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i32> for Sbi<u8>

source§

fn from(secret: i32) -> Self

Create a secret Sbi<u8> from an i32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i64> for Sbi<i128>

source§

fn from(secret: i64) -> Self

Create a secret Sbi<i128> from an i64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i64> for Sbi<i16>

source§

fn from(secret: i64) -> Self

Create a secret Sbi<i16> from an i64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i64> for Sbi<i32>

source§

fn from(secret: i64) -> Self

Create a secret Sbi<i32> from an i64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i64> for Sbi<i8>

source§

fn from(secret: i64) -> Self

Create a secret Sbi<i8> from an i64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i64> for Sbi<u128>

source§

fn from(secret: i64) -> Self

Create a secret Sbi<u128> from an i64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i64> for Sbi<u16>

source§

fn from(secret: i64) -> Self

Create a secret Sbi<u16> from an i64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i64> for Sbi<u32>

source§

fn from(secret: i64) -> Self

Create a secret Sbi<u32> from an i64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i64> for Sbi<u64>

source§

fn from(secret: i64) -> Self

Create a secret Sbi<u64> from an i64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i64> for Sbi<u8>

source§

fn from(secret: i64) -> Self

Create a secret Sbi<u8> from an i64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i8> for Sbi<i128>

source§

fn from(secret: i8) -> Self

Create a secret Sbi<i128> from an i8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i8> for Sbi<i16>

source§

fn from(secret: i8) -> Self

Create a secret Sbi<i16> from an i8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i8> for Sbi<i32>

source§

fn from(secret: i8) -> Self

Create a secret Sbi<i32> from an i8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i8> for Sbi<i64>

source§

fn from(secret: i8) -> Self

Create a secret Sbi<i64> from an i8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i8> for Sbi<u128>

source§

fn from(secret: i8) -> Self

Create a secret Sbi<u128> from an i8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i8> for Sbi<u16>

source§

fn from(secret: i8) -> Self

Create a secret Sbi<u16> from an i8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i8> for Sbi<u32>

source§

fn from(secret: i8) -> Self

Create a secret Sbi<u32> from an i8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i8> for Sbi<u64>

source§

fn from(secret: i8) -> Self

Create a secret Sbi<u64> from an i8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<i8> for Sbi<u8>

source§

fn from(secret: i8) -> Self

Create a secret Sbi<u8> from an i8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u128> for Sbi<i128>

source§

fn from(secret: u128) -> Self

Create a secret Sbi<i128> from an u128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u128> for Sbi<i16>

source§

fn from(secret: u128) -> Self

Create a secret Sbi<i16> from an u128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u128> for Sbi<i32>

source§

fn from(secret: u128) -> Self

Create a secret Sbi<i32> from an u128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u128> for Sbi<i64>

source§

fn from(secret: u128) -> Self

Create a secret Sbi<i64> from an u128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u128> for Sbi<i8>

source§

fn from(secret: u128) -> Self

Create a secret Sbi<i8> from an u128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u128> for Sbi<u16>

source§

fn from(secret: u128) -> Self

Create a secret Sbi<u16> from an u128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u128> for Sbi<u32>

source§

fn from(secret: u128) -> Self

Create a secret Sbi<u32> from an u128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u128> for Sbi<u64>

source§

fn from(secret: u128) -> Self

Create a secret Sbi<u64> from an u128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u128> for Sbi<u8>

source§

fn from(secret: u128) -> Self

Create a secret Sbi<u8> from an u128.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u16> for Sbi<i128>

source§

fn from(secret: u16) -> Self

Create a secret Sbi<i128> from an u16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u16> for Sbi<i16>

source§

fn from(secret: u16) -> Self

Create a secret Sbi<i16> from an u16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u16> for Sbi<i32>

source§

fn from(secret: u16) -> Self

Create a secret Sbi<i32> from an u16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u16> for Sbi<i64>

source§

fn from(secret: u16) -> Self

Create a secret Sbi<i64> from an u16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u16> for Sbi<i8>

source§

fn from(secret: u16) -> Self

Create a secret Sbi<i8> from an u16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u16> for Sbi<u128>

source§

fn from(secret: u16) -> Self

Create a secret Sbi<u128> from an u16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u16> for Sbi<u32>

source§

fn from(secret: u16) -> Self

Create a secret Sbi<u32> from an u16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u16> for Sbi<u64>

source§

fn from(secret: u16) -> Self

Create a secret Sbi<u64> from an u16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u16> for Sbi<u8>

source§

fn from(secret: u16) -> Self

Create a secret Sbi<u8> from an u16.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u32> for Sbi<i128>

source§

fn from(secret: u32) -> Self

Create a secret Sbi<i128> from an u32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u32> for Sbi<i16>

source§

fn from(secret: u32) -> Self

Create a secret Sbi<i16> from an u32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u32> for Sbi<i32>

source§

fn from(secret: u32) -> Self

Create a secret Sbi<i32> from an u32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u32> for Sbi<i64>

source§

fn from(secret: u32) -> Self

Create a secret Sbi<i64> from an u32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u32> for Sbi<i8>

source§

fn from(secret: u32) -> Self

Create a secret Sbi<i8> from an u32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u32> for Sbi<u128>

source§

fn from(secret: u32) -> Self

Create a secret Sbi<u128> from an u32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u32> for Sbi<u16>

source§

fn from(secret: u32) -> Self

Create a secret Sbi<u16> from an u32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u32> for Sbi<u64>

source§

fn from(secret: u32) -> Self

Create a secret Sbi<u64> from an u32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u32> for Sbi<u8>

source§

fn from(secret: u32) -> Self

Create a secret Sbi<u8> from an u32.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u64> for Sbi<i128>

source§

fn from(secret: u64) -> Self

Create a secret Sbi<i128> from an u64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u64> for Sbi<i16>

source§

fn from(secret: u64) -> Self

Create a secret Sbi<i16> from an u64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u64> for Sbi<i32>

source§

fn from(secret: u64) -> Self

Create a secret Sbi<i32> from an u64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u64> for Sbi<i64>

source§

fn from(secret: u64) -> Self

Create a secret Sbi<i64> from an u64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u64> for Sbi<i8>

source§

fn from(secret: u64) -> Self

Create a secret Sbi<i8> from an u64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u64> for Sbi<u128>

source§

fn from(secret: u64) -> Self

Create a secret Sbi<u128> from an u64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u64> for Sbi<u16>

source§

fn from(secret: u64) -> Self

Create a secret Sbi<u16> from an u64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u64> for Sbi<u32>

source§

fn from(secret: u64) -> Self

Create a secret Sbi<u32> from an u64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u64> for Sbi<u8>

source§

fn from(secret: u64) -> Self

Create a secret Sbi<u8> from an u64.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u8> for Sbi<i128>

source§

fn from(secret: u8) -> Self

Create a secret Sbi<i128> from an u8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u8> for Sbi<i16>

source§

fn from(secret: u8) -> Self

Create a secret Sbi<i16> from an u8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u8> for Sbi<i32>

source§

fn from(secret: u8) -> Self

Create a secret Sbi<i32> from an u8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u8> for Sbi<i64>

source§

fn from(secret: u8) -> Self

Create a secret Sbi<i64> from an u8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u8> for Sbi<i8>

source§

fn from(secret: u8) -> Self

Create a secret Sbi<i8> from an u8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u8> for Sbi<u128>

source§

fn from(secret: u8) -> Self

Create a secret Sbi<u128> from an u8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u8> for Sbi<u16>

source§

fn from(secret: u8) -> Self

Create a secret Sbi<u16> from an u8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u8> for Sbi<u32>

source§

fn from(secret: u8) -> Self

Create a secret Sbi<u32> from an u8.

The cast follows the semantics of a rust numeric cast.

source§

impl From<u8> for Sbi<u64>

source§

fn from(secret: u8) -> Self

Create a secret Sbi<u64> from an u8.

The cast follows the semantics of a rust numeric cast.

source§

impl FromToBits for Sbi<i128>

Allows conversions from Sbi<i128> to array of bits and back.

source§

type BitsType = [bool; 128]

Bit-array type.
source§

fn to_le_bits(self) -> Self::BitsType

Converts Self to the bits array type.
source§

fn from_le_bits(bits: Self::BitsType) -> Self

Converts from an array of bits to Self.
source§

impl FromToBits for Sbi<i16>

Allows conversions from Sbi<i16> to array of bits and back.

source§

type BitsType = [bool; 16]

Bit-array type.
source§

fn to_le_bits(self) -> Self::BitsType

Converts Self to the bits array type.
source§

fn from_le_bits(bits: Self::BitsType) -> Self

Converts from an array of bits to Self.
source§

impl FromToBits for Sbi<i32>

Allows conversions from Sbi<i32> to array of bits and back.

source§

type BitsType = [bool; 32]

Bit-array type.
source§

fn to_le_bits(self) -> Self::BitsType

Converts Self to the bits array type.
source§

fn from_le_bits(bits: Self::BitsType) -> Self

Converts from an array of bits to Self.
source§

impl FromToBits for Sbi<i64>

Allows conversions from Sbi<i64> to array of bits and back.

source§

type BitsType = [bool; 64]

Bit-array type.
source§

fn to_le_bits(self) -> Self::BitsType

Converts Self to the bits array type.
source§

fn from_le_bits(bits: Self::BitsType) -> Self

Converts from an array of bits to Self.
source§

impl FromToBits for Sbi<i8>

Allows conversions from Sbi<i8> to array of bits and back.

source§

type BitsType = [bool; 8]

Bit-array type.
source§

fn to_le_bits(self) -> Self::BitsType

Converts Self to the bits array type.
source§

fn from_le_bits(bits: Self::BitsType) -> Self

Converts from an array of bits to Self.
source§

impl FromToBits for Sbi<u128>

Allows conversions from Sbi<u128> to array of bits and back.

source§

type BitsType = [bool; 128]

Bit-array type.
source§

fn to_le_bits(self) -> Self::BitsType

Converts Self to the bits array type.
source§

fn from_le_bits(bits: Self::BitsType) -> Self

Converts from an array of bits to Self.
source§

impl FromToBits for Sbi<u16>

Allows conversions from Sbi<u16> to array of bits and back.

source§

type BitsType = [bool; 16]

Bit-array type.
source§

fn to_le_bits(self) -> Self::BitsType

Converts Self to the bits array type.
source§

fn from_le_bits(bits: Self::BitsType) -> Self

Converts from an array of bits to Self.
source§

impl FromToBits for Sbi<u32>

Allows conversions from Sbi<u32> to array of bits and back.

source§

type BitsType = [bool; 32]

Bit-array type.
source§

fn to_le_bits(self) -> Self::BitsType

Converts Self to the bits array type.
source§

fn from_le_bits(bits: Self::BitsType) -> Self

Converts from an array of bits to Self.
source§

impl FromToBits for Sbi<u64>

Allows conversions from Sbi<u64> to array of bits and back.

source§

type BitsType = [bool; 64]

Bit-array type.
source§

fn to_le_bits(self) -> Self::BitsType

Converts Self to the bits array type.
source§

fn from_le_bits(bits: Self::BitsType) -> Self

Converts from an array of bits to Self.
source§

impl FromToBits for Sbi<u8>

Allows conversions from Sbi<u8> to array of bits and back.

source§

type BitsType = [bool; 8]

Bit-array type.
source§

fn to_le_bits(self) -> Self::BitsType

Converts Self to the bits array type.
source§

fn from_le_bits(bits: Self::BitsType) -> Self

Converts from an array of bits to Self.
source§

impl<NT> Mul for Sbi<NT>
where NT: Mul<Output = NT>,

source§

type Output = Sbi<NT>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
source§

impl<NT: PartialEq> PartialEq for Sbi<NT>

source§

fn eq(&self, other: &Sbi<NT>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<NT> PartialOrd for Sbi<NT>
where NT: PartialOrd,

source§

fn partial_cmp(&self, rhs: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, rhs: &Self) -> Sbu1

Tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, rhs: &Self) -> Sbu1

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn gt(&self, rhs: &Self) -> Sbu1

Tests greater than (for self and other) and is used by the > operator. Read more
source§

fn ge(&self, rhs: &Self) -> Sbu1

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl SecretBinary for Sbi<i128>

Implementation of SecretBinary trait for Sbi<i128>. Encoded as a little-endian integer.

source§

fn secret_read_from<T: Read>(reader: &mut T) -> Self

Deserialization method for a secret.
source§

fn secret_write_to<T: Write>(&self, writer: &mut T) -> Result<()>

Serialization method for a secret.
source§

impl SecretBinary for Sbi<i16>

Implementation of SecretBinary trait for Sbi<i16>. Encoded as a little-endian integer.

source§

fn secret_read_from<T: Read>(reader: &mut T) -> Self

Deserialization method for a secret.
source§

fn secret_write_to<T: Write>(&self, writer: &mut T) -> Result<()>

Serialization method for a secret.
source§

impl SecretBinary for Sbi<i32>

Implementation of SecretBinary trait for Sbi<i32>. Encoded as a little-endian integer.

source§

fn secret_read_from<T: Read>(reader: &mut T) -> Self

Deserialization method for a secret.
source§

fn secret_write_to<T: Write>(&self, writer: &mut T) -> Result<()>

Serialization method for a secret.
source§

impl SecretBinary for Sbi<i64>

Implementation of SecretBinary trait for Sbi<i64>. Encoded as a little-endian integer.

source§

fn secret_read_from<T: Read>(reader: &mut T) -> Self

Deserialization method for a secret.
source§

fn secret_write_to<T: Write>(&self, writer: &mut T) -> Result<()>

Serialization method for a secret.
source§

impl SecretBinary for Sbi<i8>

Implementation of SecretBinary trait for Sbi<i8>. Encoded as a little-endian integer.

source§

fn secret_read_from<T: Read>(reader: &mut T) -> Self

Deserialization method for a secret.
source§

fn secret_write_to<T: Write>(&self, writer: &mut T) -> Result<()>

Serialization method for a secret.
source§

impl SecretBinary for Sbi<u128>

Implementation of SecretBinary trait for Sbi<u128>. Encoded as a little-endian integer.

source§

fn secret_read_from<T: Read>(reader: &mut T) -> Self

Deserialization method for a secret.
source§

fn secret_write_to<T: Write>(&self, writer: &mut T) -> Result<()>

Serialization method for a secret.
source§

impl SecretBinary for Sbi<u16>

Implementation of SecretBinary trait for Sbi<u16>. Encoded as a little-endian integer.

source§

fn secret_read_from<T: Read>(reader: &mut T) -> Self

Deserialization method for a secret.
source§

fn secret_write_to<T: Write>(&self, writer: &mut T) -> Result<()>

Serialization method for a secret.
source§

impl SecretBinary for Sbi<u32>

Implementation of SecretBinary trait for Sbi<u32>. Encoded as a little-endian integer.

source§

fn secret_read_from<T: Read>(reader: &mut T) -> Self

Deserialization method for a secret.
source§

fn secret_write_to<T: Write>(&self, writer: &mut T) -> Result<()>

Serialization method for a secret.
source§

impl SecretBinary for Sbi<u64>

Implementation of SecretBinary trait for Sbi<u64>. Encoded as a little-endian integer.

source§

fn secret_read_from<T: Read>(reader: &mut T) -> Self

Deserialization method for a secret.
source§

fn secret_write_to<T: Write>(&self, writer: &mut T) -> Result<()>

Serialization method for a secret.
source§

impl SecretBinary for Sbi<u8>

Implementation of SecretBinary trait for Sbi<u8>. Encoded as a little-endian integer.

source§

fn secret_read_from<T: Read>(reader: &mut T) -> Self

Deserialization method for a secret.
source§

fn secret_write_to<T: Write>(&self, writer: &mut T) -> Result<()>

Serialization method for a secret.
source§

impl SecretBinaryFixedSize for Sbi<i128>

Implementation of SecretBinaryFixedSize trait for Sbi<i128>.

source§

const BITS: u32 = 128u32

The bitsize of the type.
source§

impl SecretBinaryFixedSize for Sbi<i16>

Implementation of SecretBinaryFixedSize trait for Sbi<i16>.

source§

const BITS: u32 = 16u32

The bitsize of the type.
source§

impl SecretBinaryFixedSize for Sbi<i32>

Implementation of SecretBinaryFixedSize trait for Sbi<i32>.

source§

const BITS: u32 = 32u32

The bitsize of the type.
source§

impl SecretBinaryFixedSize for Sbi<i64>

Implementation of SecretBinaryFixedSize trait for Sbi<i64>.

source§

const BITS: u32 = 64u32

The bitsize of the type.
source§

impl SecretBinaryFixedSize for Sbi<i8>

Implementation of SecretBinaryFixedSize trait for Sbi<i8>.

source§

const BITS: u32 = 8u32

The bitsize of the type.
source§

impl SecretBinaryFixedSize for Sbi<u128>

Implementation of SecretBinaryFixedSize trait for Sbi<u128>.

source§

const BITS: u32 = 128u32

The bitsize of the type.
source§

impl SecretBinaryFixedSize for Sbi<u16>

Implementation of SecretBinaryFixedSize trait for Sbi<u16>.

source§

const BITS: u32 = 16u32

The bitsize of the type.
source§

impl SecretBinaryFixedSize for Sbi<u32>

Implementation of SecretBinaryFixedSize trait for Sbi<u32>.

source§

const BITS: u32 = 32u32

The bitsize of the type.
source§

impl SecretBinaryFixedSize for Sbi<u64>

Implementation of SecretBinaryFixedSize trait for Sbi<u64>.

source§

const BITS: u32 = 64u32

The bitsize of the type.
source§

impl SecretBinaryFixedSize for Sbi<u8>

Implementation of SecretBinaryFixedSize trait for Sbi<u8>.

source§

const BITS: u32 = 8u32

The bitsize of the type.
source§

impl<NT, Rhs> Shl<Rhs> for Sbi<NT>
where Wrapping<NT>: Shl<Rhs, Output = Wrapping<NT>>,

source§

type Output = Sbi<NT>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: Rhs) -> Self::Output

Performs the << operation. Read more
source§

impl<NT, Rhs> Shr<Rhs> for Sbi<NT>
where Wrapping<NT>: Shr<Rhs, Output = Wrapping<NT>>,

source§

type Output = Sbi<NT>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: Rhs) -> Self::Output

Performs the >> operation. Read more
source§

impl<NT> Sub for Sbi<NT>
where Wrapping<NT>: Sub<Output = Wrapping<NT>>,

source§

type Output = Sbi<NT>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
source§

impl<NT: Copy> Copy for Sbi<NT>

source§

impl<NT: Eq> Eq for Sbi<NT>

source§

impl<NT> StructuralPartialEq for Sbi<NT>

Auto Trait Implementations§

§

impl<NT> Freeze for Sbi<NT>
where NT: Freeze,

§

impl<NT> RefUnwindSafe for Sbi<NT>
where NT: RefUnwindSafe,

§

impl<NT> Send for Sbi<NT>
where NT: Send,

§

impl<NT> Sync for Sbi<NT>
where NT: Sync,

§

impl<NT> Unpin for Sbi<NT>
where NT: Unpin,

§

impl<NT> UnwindSafe for Sbi<NT>
where NT: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<!> for T

source§

fn from(t: !) -> T

Converts to this type from the input type.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.