Struct Multiplicative

Source
pub struct Multiplicative;
Expand description

The multiplication operator, commonly symbolized by ×.

Trait Implementations§

Source§

impl Clone for Multiplicative

Source§

fn clone(&self) -> Multiplicative

Returns a duplicate 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 Identity<Multiplicative> for f32

Source§

fn id() -> f32

The identity element.
Source§

impl Identity<Multiplicative> for f64

Source§

fn id() -> f64

The identity element.
Source§

impl Identity<Multiplicative> for i16

Source§

fn id() -> i16

The identity element.
Source§

impl Identity<Multiplicative> for i32

Source§

fn id() -> i32

The identity element.
Source§

impl Identity<Multiplicative> for i64

Source§

fn id() -> i64

The identity element.
Source§

impl Identity<Multiplicative> for i8

Source§

fn id() -> i8

The identity element.
Source§

impl Identity<Multiplicative> for u16

Source§

fn id() -> u16

The identity element.
Source§

impl Identity<Multiplicative> for u32

Source§

fn id() -> u32

The identity element.
Source§

impl Identity<Multiplicative> for u64

Source§

fn id() -> u64

The identity element.
Source§

impl Identity<Multiplicative> for u8

Source§

fn id() -> u8

The identity element.
Source§

impl<T> Magma<Multiplicative> for T

Source§

fn operate(self, lhs: Self) -> Self

Performs an operation.
Source§

fn op(self, _: O, lhs: Self) -> Self

Performs specific operation.
Source§

impl Monoid<Multiplicative> for i16

Source§

fn prop_operating_identity_element_is_noop(a: Self) -> bool

Checks whether operating with the identity element is a no-op for the given argument.
Source§

impl Monoid<Multiplicative> for i32

Source§

fn prop_operating_identity_element_is_noop(a: Self) -> bool

Checks whether operating with the identity element is a no-op for the given argument.
Source§

impl Monoid<Multiplicative> for i64

Source§

fn prop_operating_identity_element_is_noop(a: Self) -> bool

Checks whether operating with the identity element is a no-op for the given argument.
Source§

impl Monoid<Multiplicative> for i8

Source§

fn prop_operating_identity_element_is_noop(a: Self) -> bool

Checks whether operating with the identity element is a no-op for the given argument.
Source§

impl Monoid<Multiplicative> for u16

Source§

fn prop_operating_identity_element_is_noop(a: Self) -> bool

Checks whether operating with the identity element is a no-op for the given argument.
Source§

impl Monoid<Multiplicative> for u32

Source§

fn prop_operating_identity_element_is_noop(a: Self) -> bool

Checks whether operating with the identity element is a no-op for the given argument.
Source§

impl Monoid<Multiplicative> for u64

Source§

fn prop_operating_identity_element_is_noop(a: Self) -> bool

Checks whether operating with the identity element is a no-op for the given argument.
Source§

impl Monoid<Multiplicative> for u8

Source§

fn prop_operating_identity_element_is_noop(a: Self) -> bool

Checks whether operating with the identity element is a no-op for the given argument.
Source§

impl MonoidApprox<Multiplicative> for i16

Source§

fn prop_operating_identity_element_is_noop_approx(a: Self) -> bool

Checks whether operating with the identity element is approximately a no-op for the given argument.
Source§

impl MonoidApprox<Multiplicative> for i32

Source§

fn prop_operating_identity_element_is_noop_approx(a: Self) -> bool

Checks whether operating with the identity element is approximately a no-op for the given argument.
Source§

impl MonoidApprox<Multiplicative> for i64

Source§

fn prop_operating_identity_element_is_noop_approx(a: Self) -> bool

Checks whether operating with the identity element is approximately a no-op for the given argument.
Source§

impl MonoidApprox<Multiplicative> for i8

Source§

fn prop_operating_identity_element_is_noop_approx(a: Self) -> bool

Checks whether operating with the identity element is approximately a no-op for the given argument.
Source§

impl MonoidApprox<Multiplicative> for u16

Source§

fn prop_operating_identity_element_is_noop_approx(a: Self) -> bool

Checks whether operating with the identity element is approximately a no-op for the given argument.
Source§

impl MonoidApprox<Multiplicative> for u32

Source§

fn prop_operating_identity_element_is_noop_approx(a: Self) -> bool

Checks whether operating with the identity element is approximately a no-op for the given argument.
Source§

impl MonoidApprox<Multiplicative> for u64

Source§

fn prop_operating_identity_element_is_noop_approx(a: Self) -> bool

Checks whether operating with the identity element is approximately a no-op for the given argument.
Source§

impl MonoidApprox<Multiplicative> for u8

Source§

fn prop_operating_identity_element_is_noop_approx(a: Self) -> bool

Checks whether operating with the identity element is approximately a no-op for the given argument.
Source§

impl Op for Multiplicative

Source§

fn oper() -> Self

Returns the structure that identifies the operator.
Source§

impl Semigroup<Multiplicative> for i16

Source§

fn prop_is_associative(args: (Self, Self, Self)) -> bool

Returns true if associativity holds for the given arguments.
Source§

impl Semigroup<Multiplicative> for i32

Source§

fn prop_is_associative(args: (Self, Self, Self)) -> bool

Returns true if associativity holds for the given arguments.
Source§

impl Semigroup<Multiplicative> for i64

Source§

fn prop_is_associative(args: (Self, Self, Self)) -> bool

Returns true if associativity holds for the given arguments.
Source§

impl Semigroup<Multiplicative> for i8

Source§

fn prop_is_associative(args: (Self, Self, Self)) -> bool

Returns true if associativity holds for the given arguments.
Source§

impl Semigroup<Multiplicative> for u16

Source§

fn prop_is_associative(args: (Self, Self, Self)) -> bool

Returns true if associativity holds for the given arguments.
Source§

impl Semigroup<Multiplicative> for u32

Source§

fn prop_is_associative(args: (Self, Self, Self)) -> bool

Returns true if associativity holds for the given arguments.
Source§

impl Semigroup<Multiplicative> for u64

Source§

fn prop_is_associative(args: (Self, Self, Self)) -> bool

Returns true if associativity holds for the given arguments.
Source§

impl Semigroup<Multiplicative> for u8

Source§

fn prop_is_associative(args: (Self, Self, Self)) -> bool

Returns true if associativity holds for the given arguments.
Source§

impl SemigroupApprox<Multiplicative> for i16

Source§

fn prop_is_associative_approx(args: (Self, Self, Self)) -> bool

Returns true if associativity holds approximately for the given arguments.
Source§

impl SemigroupApprox<Multiplicative> for i32

Source§

fn prop_is_associative_approx(args: (Self, Self, Self)) -> bool

Returns true if associativity holds approximately for the given arguments.
Source§

impl SemigroupApprox<Multiplicative> for i64

Source§

fn prop_is_associative_approx(args: (Self, Self, Self)) -> bool

Returns true if associativity holds approximately for the given arguments.
Source§

impl SemigroupApprox<Multiplicative> for i8

Source§

fn prop_is_associative_approx(args: (Self, Self, Self)) -> bool

Returns true if associativity holds approximately for the given arguments.
Source§

impl SemigroupApprox<Multiplicative> for u16

Source§

fn prop_is_associative_approx(args: (Self, Self, Self)) -> bool

Returns true if associativity holds approximately for the given arguments.
Source§

impl SemigroupApprox<Multiplicative> for u32

Source§

fn prop_is_associative_approx(args: (Self, Self, Self)) -> bool

Returns true if associativity holds approximately for the given arguments.
Source§

impl SemigroupApprox<Multiplicative> for u64

Source§

fn prop_is_associative_approx(args: (Self, Self, Self)) -> bool

Returns true if associativity holds approximately for the given arguments.
Source§

impl SemigroupApprox<Multiplicative> for u8

Source§

fn prop_is_associative_approx(args: (Self, Self, Self)) -> bool

Returns true if associativity holds approximately for the given arguments.
Source§

impl Copy for Multiplicative

Auto Trait Implementations§

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, 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> 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> Inverse<Multiplicative> for T
where T: Recip<Result = T>,

Source§

fn inv(self) -> T

Returns the inverse of self, relative to the operator O.
Source§

impl<T> MagmaApprox<Multiplicative> for T
where T: Mul<Output = T> + PartialEq + ApproxEq + Clone,

Source§

fn approx(self, lhs: T) -> T

Performs an operation.
Source§

fn ap(self, _: O, lhs: Self) -> Self

Performs specific operation.
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.