pub struct Additive;Expand description
The addition operator, commonly symbolized by +.
Trait Implementations§
source§impl AbstractGroupAbelian<Additive> for f32
impl AbstractGroupAbelian<Additive> for f32
source§fn prop_is_commutative_approx(args: (Self, Self)) -> boolwhere
Self: RelativeEq,
fn prop_is_commutative_approx(args: (Self, Self)) -> boolwhere
Self: RelativeEq,
Returns
true if the operator is commutative for the given argument tuple. Approximate
equality is used for verifications.source§impl AbstractGroupAbelian<Additive> for f64
impl AbstractGroupAbelian<Additive> for f64
source§fn prop_is_commutative_approx(args: (Self, Self)) -> boolwhere
Self: RelativeEq,
fn prop_is_commutative_approx(args: (Self, Self)) -> boolwhere
Self: RelativeEq,
Returns
true if the operator is commutative for the given argument tuple. Approximate
equality is used for verifications.source§impl AbstractGroupAbelian<Additive> for i128
impl AbstractGroupAbelian<Additive> for i128
source§fn prop_is_commutative(args: (Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_commutative(args: (Self, Self)) -> boolwhere
Self: Eq,
Returns
true if the operator is commutative for the given argument tuple.source§impl AbstractGroupAbelian<Additive> for i16
impl AbstractGroupAbelian<Additive> for i16
source§fn prop_is_commutative(args: (Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_commutative(args: (Self, Self)) -> boolwhere
Self: Eq,
Returns
true if the operator is commutative for the given argument tuple.source§impl AbstractGroupAbelian<Additive> for i32
impl AbstractGroupAbelian<Additive> for i32
source§fn prop_is_commutative(args: (Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_commutative(args: (Self, Self)) -> boolwhere
Self: Eq,
Returns
true if the operator is commutative for the given argument tuple.source§impl AbstractGroupAbelian<Additive> for i64
impl AbstractGroupAbelian<Additive> for i64
source§fn prop_is_commutative(args: (Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_commutative(args: (Self, Self)) -> boolwhere
Self: Eq,
Returns
true if the operator is commutative for the given argument tuple.source§impl AbstractGroupAbelian<Additive> for i8
impl AbstractGroupAbelian<Additive> for i8
source§fn prop_is_commutative(args: (Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_commutative(args: (Self, Self)) -> boolwhere
Self: Eq,
Returns
true if the operator is commutative for the given argument tuple.source§impl AbstractGroupAbelian<Additive> for isize
impl AbstractGroupAbelian<Additive> for isize
source§fn prop_is_commutative(args: (Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_commutative(args: (Self, Self)) -> boolwhere
Self: Eq,
Returns
true if the operator is commutative for the given argument tuple.source§impl<N: AbstractMagma<Additive>> AbstractMagma<Additive> for Complex<N>
impl<N: AbstractMagma<Additive>> AbstractMagma<Additive> for Complex<N>
source§impl AbstractMagma<Additive> for f32
impl AbstractMagma<Additive> for f32
source§impl AbstractMagma<Additive> for f64
impl AbstractMagma<Additive> for f64
source§impl AbstractMagma<Additive> for i128
impl AbstractMagma<Additive> for i128
source§impl AbstractMagma<Additive> for i16
impl AbstractMagma<Additive> for i16
source§impl AbstractMagma<Additive> for i32
impl AbstractMagma<Additive> for i32
source§impl AbstractMagma<Additive> for i64
impl AbstractMagma<Additive> for i64
source§impl AbstractMagma<Additive> for i8
impl AbstractMagma<Additive> for i8
source§impl AbstractMagma<Additive> for isize
impl AbstractMagma<Additive> for isize
source§impl AbstractMagma<Additive> for u128
impl AbstractMagma<Additive> for u128
source§impl AbstractMagma<Additive> for u16
impl AbstractMagma<Additive> for u16
source§impl AbstractMagma<Additive> for u32
impl AbstractMagma<Additive> for u32
source§impl AbstractMagma<Additive> for u64
impl AbstractMagma<Additive> for u64
source§impl AbstractMagma<Additive> for u8
impl AbstractMagma<Additive> for u8
source§impl AbstractMagma<Additive> for usize
impl AbstractMagma<Additive> for usize
source§impl AbstractMonoid<Additive> for f32
impl AbstractMonoid<Additive> for f32
source§fn prop_operating_identity_element_is_noop_approx(args: (Self,)) -> boolwhere
Self: RelativeEq,
fn prop_operating_identity_element_is_noop_approx(args: (Self,)) -> boolwhere
Self: RelativeEq,
Checks whether operating with the identity element is a no-op for the given
argument. Approximate equality is used for verifications.
source§impl AbstractMonoid<Additive> for f64
impl AbstractMonoid<Additive> for f64
source§fn prop_operating_identity_element_is_noop_approx(args: (Self,)) -> boolwhere
Self: RelativeEq,
fn prop_operating_identity_element_is_noop_approx(args: (Self,)) -> boolwhere
Self: RelativeEq,
Checks whether operating with the identity element is a no-op for the given
argument. Approximate equality is used for verifications.
source§impl AbstractMonoid<Additive> for i128
impl AbstractMonoid<Additive> for i128
source§impl AbstractMonoid<Additive> for i16
impl AbstractMonoid<Additive> for i16
source§impl AbstractMonoid<Additive> for i32
impl AbstractMonoid<Additive> for i32
source§impl AbstractMonoid<Additive> for i64
impl AbstractMonoid<Additive> for i64
source§impl AbstractMonoid<Additive> for i8
impl AbstractMonoid<Additive> for i8
source§impl AbstractMonoid<Additive> for isize
impl AbstractMonoid<Additive> for isize
source§impl AbstractMonoid<Additive> for u128
impl AbstractMonoid<Additive> for u128
source§impl AbstractMonoid<Additive> for u16
impl AbstractMonoid<Additive> for u16
source§impl AbstractMonoid<Additive> for u32
impl AbstractMonoid<Additive> for u32
source§impl AbstractMonoid<Additive> for u64
impl AbstractMonoid<Additive> for u64
source§impl AbstractMonoid<Additive> for u8
impl AbstractMonoid<Additive> for u8
source§impl AbstractMonoid<Additive> for usize
impl AbstractMonoid<Additive> for usize
source§impl AbstractQuasigroup<Additive> for f32
impl AbstractQuasigroup<Additive> for f32
source§fn prop_inv_is_latin_square_approx(args: (Self, Self)) -> boolwhere
Self: RelativeEq,
fn prop_inv_is_latin_square_approx(args: (Self, Self)) -> boolwhere
Self: RelativeEq,
Returns
true if latin squareness holds for the given arguments. Approximate
equality is used for verifications. Read moresource§impl AbstractQuasigroup<Additive> for f64
impl AbstractQuasigroup<Additive> for f64
source§fn prop_inv_is_latin_square_approx(args: (Self, Self)) -> boolwhere
Self: RelativeEq,
fn prop_inv_is_latin_square_approx(args: (Self, Self)) -> boolwhere
Self: RelativeEq,
Returns
true if latin squareness holds for the given arguments. Approximate
equality is used for verifications. Read moresource§impl AbstractQuasigroup<Additive> for i128
impl AbstractQuasigroup<Additive> for i128
source§fn prop_inv_is_latin_square(args: (Self, Self)) -> boolwhere
Self: Eq,
fn prop_inv_is_latin_square(args: (Self, Self)) -> boolwhere
Self: Eq,
Returns
true if latin squareness holds for the given arguments. Read moresource§impl AbstractQuasigroup<Additive> for i16
impl AbstractQuasigroup<Additive> for i16
source§fn prop_inv_is_latin_square(args: (Self, Self)) -> boolwhere
Self: Eq,
fn prop_inv_is_latin_square(args: (Self, Self)) -> boolwhere
Self: Eq,
Returns
true if latin squareness holds for the given arguments. Read moresource§impl AbstractQuasigroup<Additive> for i32
impl AbstractQuasigroup<Additive> for i32
source§fn prop_inv_is_latin_square(args: (Self, Self)) -> boolwhere
Self: Eq,
fn prop_inv_is_latin_square(args: (Self, Self)) -> boolwhere
Self: Eq,
Returns
true if latin squareness holds for the given arguments. Read moresource§impl AbstractQuasigroup<Additive> for i64
impl AbstractQuasigroup<Additive> for i64
source§fn prop_inv_is_latin_square(args: (Self, Self)) -> boolwhere
Self: Eq,
fn prop_inv_is_latin_square(args: (Self, Self)) -> boolwhere
Self: Eq,
Returns
true if latin squareness holds for the given arguments. Read moresource§impl AbstractQuasigroup<Additive> for i8
impl AbstractQuasigroup<Additive> for i8
source§fn prop_inv_is_latin_square(args: (Self, Self)) -> boolwhere
Self: Eq,
fn prop_inv_is_latin_square(args: (Self, Self)) -> boolwhere
Self: Eq,
Returns
true if latin squareness holds for the given arguments. Read moresource§impl AbstractQuasigroup<Additive> for isize
impl AbstractQuasigroup<Additive> for isize
source§fn prop_inv_is_latin_square(args: (Self, Self)) -> boolwhere
Self: Eq,
fn prop_inv_is_latin_square(args: (Self, Self)) -> boolwhere
Self: Eq,
Returns
true if latin squareness holds for the given arguments. Read moresource§impl AbstractSemigroup<Additive> for f32
impl AbstractSemigroup<Additive> for f32
source§fn prop_is_associative_approx(args: (Self, Self, Self)) -> boolwhere
Self: RelativeEq,
fn prop_is_associative_approx(args: (Self, Self, Self)) -> boolwhere
Self: RelativeEq,
Returns
true if associativity holds for the given arguments. Approximate equality is used
for verifications.source§impl AbstractSemigroup<Additive> for f64
impl AbstractSemigroup<Additive> for f64
source§fn prop_is_associative_approx(args: (Self, Self, Self)) -> boolwhere
Self: RelativeEq,
fn prop_is_associative_approx(args: (Self, Self, Self)) -> boolwhere
Self: RelativeEq,
Returns
true if associativity holds for the given arguments. Approximate equality is used
for verifications.source§impl AbstractSemigroup<Additive> for i128
impl AbstractSemigroup<Additive> for i128
source§fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
Returns
true if associativity holds for the given arguments.source§impl AbstractSemigroup<Additive> for i16
impl AbstractSemigroup<Additive> for i16
source§fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
Returns
true if associativity holds for the given arguments.source§impl AbstractSemigroup<Additive> for i32
impl AbstractSemigroup<Additive> for i32
source§fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
Returns
true if associativity holds for the given arguments.source§impl AbstractSemigroup<Additive> for i64
impl AbstractSemigroup<Additive> for i64
source§fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
Returns
true if associativity holds for the given arguments.source§impl AbstractSemigroup<Additive> for i8
impl AbstractSemigroup<Additive> for i8
source§fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
Returns
true if associativity holds for the given arguments.source§impl AbstractSemigroup<Additive> for isize
impl AbstractSemigroup<Additive> for isize
source§fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
Returns
true if associativity holds for the given arguments.source§impl AbstractSemigroup<Additive> for u128
impl AbstractSemigroup<Additive> for u128
source§fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
Returns
true if associativity holds for the given arguments.source§impl AbstractSemigroup<Additive> for u16
impl AbstractSemigroup<Additive> for u16
source§fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
Returns
true if associativity holds for the given arguments.source§impl AbstractSemigroup<Additive> for u32
impl AbstractSemigroup<Additive> for u32
source§fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
Returns
true if associativity holds for the given arguments.source§impl AbstractSemigroup<Additive> for u64
impl AbstractSemigroup<Additive> for u64
source§fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
Returns
true if associativity holds for the given arguments.source§impl AbstractSemigroup<Additive> for u8
impl AbstractSemigroup<Additive> for u8
source§fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
Returns
true if associativity holds for the given arguments.source§impl AbstractSemigroup<Additive> for usize
impl AbstractSemigroup<Additive> for usize
source§fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
fn prop_is_associative(args: (Self, Self, Self)) -> boolwhere
Self: Eq,
Returns
true if associativity holds for the given arguments.source§impl Operator for Additive
impl Operator for Additive
source§fn operator_token() -> Self
fn operator_token() -> Self
Returns the structure that identifies the operator.
source§impl<N: TwoSidedInverse<Additive>> TwoSidedInverse<Additive> for Complex<N>
impl<N: TwoSidedInverse<Additive>> TwoSidedInverse<Additive> for Complex<N>
source§fn two_sided_inverse(&self) -> Complex<N>
fn two_sided_inverse(&self) -> Complex<N>
source§fn two_sided_inverse_mut(&mut self)
fn two_sided_inverse_mut(&mut self)
source§impl TwoSidedInverse<Additive> for f32
impl TwoSidedInverse<Additive> for f32
source§fn two_sided_inverse(&self) -> Self
fn two_sided_inverse(&self) -> Self
source§fn two_sided_inverse_mut(&mut self)
fn two_sided_inverse_mut(&mut self)
source§impl TwoSidedInverse<Additive> for f64
impl TwoSidedInverse<Additive> for f64
source§fn two_sided_inverse(&self) -> Self
fn two_sided_inverse(&self) -> Self
source§fn two_sided_inverse_mut(&mut self)
fn two_sided_inverse_mut(&mut self)
source§impl TwoSidedInverse<Additive> for i128
impl TwoSidedInverse<Additive> for i128
source§fn two_sided_inverse(&self) -> Self
fn two_sided_inverse(&self) -> Self
source§fn two_sided_inverse_mut(&mut self)
fn two_sided_inverse_mut(&mut self)
source§impl TwoSidedInverse<Additive> for i16
impl TwoSidedInverse<Additive> for i16
source§fn two_sided_inverse(&self) -> Self
fn two_sided_inverse(&self) -> Self
source§fn two_sided_inverse_mut(&mut self)
fn two_sided_inverse_mut(&mut self)
source§impl TwoSidedInverse<Additive> for i32
impl TwoSidedInverse<Additive> for i32
source§fn two_sided_inverse(&self) -> Self
fn two_sided_inverse(&self) -> Self
source§fn two_sided_inverse_mut(&mut self)
fn two_sided_inverse_mut(&mut self)
source§impl TwoSidedInverse<Additive> for i64
impl TwoSidedInverse<Additive> for i64
source§fn two_sided_inverse(&self) -> Self
fn two_sided_inverse(&self) -> Self
source§fn two_sided_inverse_mut(&mut self)
fn two_sided_inverse_mut(&mut self)
source§impl TwoSidedInverse<Additive> for i8
impl TwoSidedInverse<Additive> for i8
source§fn two_sided_inverse(&self) -> Self
fn two_sided_inverse(&self) -> Self
source§fn two_sided_inverse_mut(&mut self)
fn two_sided_inverse_mut(&mut self)
source§impl TwoSidedInverse<Additive> for isize
impl TwoSidedInverse<Additive> for isize
source§fn two_sided_inverse(&self) -> Self
fn two_sided_inverse(&self) -> Self
source§fn two_sided_inverse_mut(&mut self)
fn two_sided_inverse_mut(&mut self)
impl<N> AbstractGroup<Additive> for Complex<N>where
N: AbstractGroupAbelian<Additive>,
impl AbstractGroup<Additive> for f32
impl AbstractGroup<Additive> for f64
impl AbstractGroup<Additive> for i128
impl AbstractGroup<Additive> for i16
impl AbstractGroup<Additive> for i32
impl AbstractGroup<Additive> for i64
impl AbstractGroup<Additive> for i8
impl AbstractGroup<Additive> for isize
impl<N> AbstractGroupAbelian<Additive> for Complex<N>where
N: AbstractGroupAbelian<Additive>,
impl<N> AbstractLoop<Additive> for Complex<N>where
N: AbstractGroupAbelian<Additive>,
impl AbstractLoop<Additive> for f32
impl AbstractLoop<Additive> for f64
impl AbstractLoop<Additive> for i128
impl AbstractLoop<Additive> for i16
impl AbstractLoop<Additive> for i32
impl AbstractLoop<Additive> for i64
impl AbstractLoop<Additive> for i8
impl AbstractLoop<Additive> for isize
impl<N> AbstractMonoid<Additive> for Complex<N>where
N: AbstractGroupAbelian<Additive>,
impl<N> AbstractQuasigroup<Additive> for Complex<N>where
N: AbstractGroupAbelian<Additive>,
impl<N> AbstractSemigroup<Additive> for Complex<N>where
N: AbstractGroupAbelian<Additive>,
impl Copy for Additive
Auto Trait Implementations§
impl Freeze for Additive
impl RefUnwindSafe for Additive
impl Send for Additive
impl Sync for Additive
impl Unpin for Additive
impl UnwindSafe for Additive
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.