Skip to main content

FloatWrap

Struct FloatWrap 

Source
pub struct FloatWrap(pub f64);

Tuple Fields§

§0: f64

Trait Implementations§

Source§

impl AbelianGroup for FloatWrap

Source§

impl Add for FloatWrap

Source§

type Output = FloatWrap

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl AddAssign for FloatWrap

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl AlgebraIso<FloatWrap, f64, f64> for IdWitness

Source§

impl AlgebraIso<FloatWrap, f64, f64> for BadWitness

Source§

impl AlgebraIso<f64, f64> for FloatWrap

Source§

impl Associative for FloatWrap

Source§

impl Clone for FloatWrap

Source§

fn clone(&self) -> FloatWrap

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Commutative for FloatWrap

Source§

impl Copy for FloatWrap

Source§

impl Debug for FloatWrap

Source§

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

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

impl Distributive for FloatWrap

Source§

impl Div for FloatWrap

Source§

type Output = FloatWrap

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self

Performs the / operation. Read more
Source§

impl DivAssign for FloatWrap

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl DivisionAlgebra<f64> for FloatWrap

Source§

fn conjugate(&self) -> Self

Computes the conjugate of an element. Read more
Source§

fn norm_sqr(&self) -> f64

Computes the squared norm of an element. Read more
Source§

fn inverse(&self) -> Self

Computes the multiplicative inverse of an element. Read more
Source§

impl DivisionAlgebraIso<FloatWrap, f64, f64> for IdWitness

Source§

impl DivisionAlgebraIso<FloatWrap, f64, f64> for BadWitness

Source§

impl DivisionAlgebraIso<f64, f64> for FloatWrap

Source§

impl FieldIso<FloatWrap, f64> for IdWitness

Source§

impl FieldIso<FloatWrap, f64> for BadWitness

Source§

impl FieldIso<f64> for FloatWrap

Source§

impl From<FloatWrap> for f64

Source§

fn from(w: FloatWrap) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for FloatWrap

Source§

fn from(x: f64) -> Self

Converts to this type from the input type.
Source§

impl GroupIso<FloatWrap, f64> for IdWitness

Source§

impl GroupIso<FloatWrap, f64> for BadWitness

Source§

impl GroupIso<FloatWrap, f64> for DoubleWitness

Source§

impl GroupIso<f64> for FloatWrap

Source§

impl Iso<FloatWrap, f64> for IdWitness

Source§

fn to_target(s: FloatWrap) -> f64

Converts a value of type S into a value of type T.
Source§

fn to_source(t: f64) -> FloatWrap

Converts a value of type T back into a value of type S.
Source§

impl Iso<FloatWrap, f64> for BadWitness

Source§

fn to_target(s: FloatWrap) -> f64

Converts a value of type S into a value of type T.
Source§

fn to_source(t: f64) -> FloatWrap

Converts a value of type T back into a value of type S.
Source§

impl Iso<FloatWrap, f64> for BadReverseWitness

Source§

fn to_target(s: FloatWrap) -> f64

Converts a value of type S into a value of type T.
Source§

fn to_source(_: f64) -> FloatWrap

Converts a value of type T back into a value of type S.
Source§

impl Iso<FloatWrap, f64> for AbsReverseWitness

Source§

fn to_target(s: FloatWrap) -> f64

Converts a value of type S into a value of type T.
Source§

fn to_source(t: f64) -> FloatWrap

Converts a value of type T back into a value of type S.
Source§

impl Iso<FloatWrap, f64> for DoubleWitness

Source§

fn to_target(s: FloatWrap) -> f64

Converts a value of type S into a value of type T.
Source§

fn to_source(t: f64) -> FloatWrap

Converts a value of type T back into a value of type S.
Source§

impl Mul for FloatWrap

Source§

type Output = FloatWrap

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<f64> for FloatWrap

Source§

type Output = FloatWrap

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl MulAssign for FloatWrap

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl MulAssign<f64> for FloatWrap

Source§

fn mul_assign(&mut self, rhs: f64)

Performs the *= operation. Read more
Source§

impl Neg for FloatWrap

Source§

type Output = FloatWrap

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl One for FloatWrap

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity.
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

impl PartialEq for FloatWrap

Source§

fn eq(&self, other: &FloatWrap) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl RingIso<FloatWrap, f64> for IdWitness

Source§

impl RingIso<FloatWrap, f64> for BadWitness

Source§

impl RingIso<FloatWrap, f64> for DoubleWitness

Source§

impl RingIso<f64> for FloatWrap

Source§

impl StructuralPartialEq for FloatWrap

Source§

impl Sub for FloatWrap

Source§

type Output = FloatWrap

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl SubAssign for FloatWrap

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl Zero for FloatWrap

Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AddGroup for T
where T: Sub<Output = T> + Add<Output = T> + Zero + Clone,

Source§

impl<T> AddMagma for T
where T: Add<Output = T> + AddAssign + Clone + PartialEq,

Source§

impl<T> AddMonoid for T
where T: Add<Output = T> + AddAssign + Zero + Clone,

Source§

impl<T> AddSemigroup for T
where T: Add<Output = T> + Associative + Clone,

Source§

impl<T, R> Algebra<R> for T
where T: Module<R, Output = T> + Mul + MulAssign + One + Distributive, R: Ring,

Source§

fn sqr(&self) -> Self

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, R> AssociativeAlgebra<R> for T
where T: Algebra<R> + Ring, R: Ring,

Source§

impl<T, R> AssociativeDivisionAlgebra<R> for T

Source§

impl<T> AssociativeRing for T
where T: Ring + Associative,

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, dest: *mut u8)

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

impl<T> CommutativeRing for T
where T: Ring + Commutative,

Source§

impl<T> DivGroup for T
where T: MulGroup,

Source§

impl<T> Field for T
where T: CommutativeRing + InvMonoid<Output = T> + Div + DivAssign,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Group for T
where T: AddGroup,

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> InvMonoid for T
where T: MulMonoid + Div<Output = T> + DivAssign + One + Clone,

Source§

fn inverse(&self) -> T

Computes the multiplicative inverse of an element. Read more
Source§

impl<V, R> Module<R> for V
where V: AbelianGroup + Mul<R, Output = V> + MulAssign<R>, R: Ring,

Source§

fn scale(&self, scalar: R) -> Self

Scales the module element by a scalar from the ring R. Read more
Source§

fn scale_mut(&mut self, scalar: R)

Scales the module element in-place by a scalar from the ring R. Read more
Source§

impl<T> MulGroup for T
where T: MulMonoid + InvMonoid<Output = T> + Div + DivAssign,

Source§

impl<T> MulMagma for T
where T: Mul<Output = T> + Clone,

Source§

impl<T> MulMonoid for T
where T: MulMagma + One + Associative,

Source§

impl<T> MulSemigroup for T
where T: Mul<Output = T> + Associative + Clone,

Source§

impl<T> Ring for T

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.