[−][src]Struct fawkes_crypto::wrappedmath::Wrap
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]
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.
fn add(self, other: Wrap<T>) -> Self::Output
[src]
impl<T: Field> AddAssign<Wrap<T>> for Wrap<T>
[src]
fn add_assign(&mut self, other: 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.
fn div(self, other: Wrap<T>) -> Self::Output
[src]
impl<T: Field> DivAssign<Wrap<T>> for Wrap<T>
[src]
fn div_assign(&mut self, other: 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.
fn mul(self, other: &'a Signal<E>) -> Self::Output
[src]
impl<E: Engine> Mul<Signal<E>> for Wrap<E::Fr>
[src]
type Output = Signal<E>
The resulting type after applying the *
operator.
fn mul(self, other: Signal<E>) -> Self::Output
[src]
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.
fn mul(self, other: Wrap<E::Fr>) -> Self::Output
[src]
impl<E: Engine> Mul<Wrap<<E as ScalarEngine>::Fr>> for Signal<E>
[src]
type Output = Signal<E>
The resulting type after applying the *
operator.
fn mul(self, other: Wrap<E::Fr>) -> Self::Output
[src]
impl<T: Field> Mul<Wrap<T>> for Wrap<T>
[src]
type Output = Wrap<T>
The resulting type after applying the *
operator.
fn mul(self, other: Wrap<T>) -> Self::Output
[src]
impl<T: Field> MulAssign<Wrap<T>> for Wrap<T>
[src]
fn mul_assign(&mut self, other: Wrap<T>)
[src]
impl<T: Field> Neg for Wrap<T>
[src]
type Output = Wrap<T>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
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.
fn sub(self, other: Wrap<T>) -> Self::Output
[src]
impl<T: Field> SubAssign<Wrap<T>> for Wrap<T>
[src]
fn sub_assign(&mut self, other: Wrap<T>)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Wrap<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Wrap<T>
impl<T> Sync for Wrap<T>
impl<T> Unpin for Wrap<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Wrap<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,