[][src]Struct fawkes_crypto::wrappedmath::Wrap

pub struct Wrap<T: Field>(pub T);

Methods

impl<T: Field> Wrap<T>[src]

pub fn new(f: T) -> Self[src]

pub fn zero() -> Self[src]

pub fn one() -> Self[src]

pub fn minusone() -> Self[src]

pub fn inverse(&self) -> Option<Self>[src]

pub fn into_inner(&self) -> T[src]

pub fn is_zero(&self) -> bool[src]

pub fn double(&self) -> Self[src]

pub fn negate(&self) -> Self[src]

pub fn square(&self) -> Self[src]

impl<T: SqrtField> Wrap<T>[src]

pub fn sqrt(self) -> Option<Self>[src]

impl<T: PrimeField> Wrap<T>[src]

pub fn into_repr(&self) -> T::Repr[src]

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

pub fn from_binary_be(blob: &[u8]) -> Self[src]

pub fn from_other<G: PrimeField>(n: Wrap<G>) -> Self[src]

Trait Implementations

impl<T: Field> Add<Wrap<T>> for Wrap<T>[src]

type Output = Wrap<T>

The resulting type after applying the + operator.

impl<T: Field> AddAssign<Wrap<T>> for Wrap<T>[src]

impl<T: Clone + Field> Clone for Wrap<T>[src]

impl<T: Copy + Field> Copy for Wrap<T>[src]

impl<T: Debug + Field> Debug for Wrap<T>[src]

impl<T: Field> Display for Wrap<T>[src]

impl<T: Field> Div<Wrap<T>> for Wrap<T>[src]

type Output = Wrap<T>

The resulting type after applying the / operator.

impl<T: Field> DivAssign<Wrap<T>> for Wrap<T>[src]

impl<'_, T: PrimeField> From<&'_ str> for Wrap<T>[src]

impl<T: PrimeField> From<bool> for Wrap<T>[src]

impl<T: PrimeField> From<i64> for Wrap<T>[src]

impl<T: PrimeField> From<u64> for Wrap<T>[src]

impl<T: PrimeField> Into<BigUint> for Wrap<T>[src]

impl<'a, E: Engine> Mul<&'a Signal<E>> for Wrap<E::Fr>[src]

type Output = Signal<E>

The resulting type after applying the * operator.

impl<E: Engine> Mul<Signal<E>> for Wrap<E::Fr>[src]

type Output = Signal<E>

The resulting type after applying the * operator.

impl<'b, E: Engine> Mul<Wrap<<E as ScalarEngine>::Fr>> for &'b Signal<E>[src]

type Output = Signal<E>

The resulting type after applying the * operator.

impl<E: Engine> Mul<Wrap<<E as ScalarEngine>::Fr>> for Signal<E>[src]

type Output = Signal<E>

The resulting type after applying the * operator.

impl<T: Field> Mul<Wrap<T>> for Wrap<T>[src]

type Output = Wrap<T>

The resulting type after applying the * operator.

impl<T: Field> MulAssign<Wrap<T>> for Wrap<T>[src]

impl<T: Field> Neg for Wrap<T>[src]

type Output = Wrap<T>

The resulting type after applying the - operator.

impl<T: Field> PartialEq<Wrap<T>> for Wrap<T>[src]

impl<T: Field> Rand for Wrap<T>[src]

impl<T: Field> Sub<Wrap<T>> for Wrap<T>[src]

type Output = Wrap<T>

The resulting type after applying the - operator.

impl<T: Field> SubAssign<Wrap<T>> for Wrap<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Wrap<T> where
    T: RefUnwindSafe

impl<T> Send for Wrap<T>

impl<T> Sync for Wrap<T>

impl<T> Unpin for Wrap<T> where
    T: Unpin

impl<T> UnwindSafe for Wrap<T> where
    T: UnwindSafe

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.