pub struct AlgebraicStructure<T>(pub T);Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Add<Output = T> + Copy> AdditiveOperation<T> for AlgebraicStructure<T>
impl<T: Add<Output = T> + Copy> AdditiveOperation<T> for AlgebraicStructure<T>
Source§impl<T: Add<Output = T> + Mul<Output = T> + Copy + PartialEq> Associativity<T> for AlgebraicStructure<T>
impl<T: Add<Output = T> + Mul<Output = T> + Copy + PartialEq> Associativity<T> for AlgebraicStructure<T>
fn verify_associativity_add(&self, b: &Self, c: &Self) -> boolwhere
Self: AdditiveOperation<T>,
fn verify_associativity_mul(&self, b: &Self, c: &Self) -> boolwhere
Self: MultiplicativeOperation<T>,
Source§impl<T: Clone> Clone for AlgebraicStructure<T>
impl<T: Clone> Clone for AlgebraicStructure<T>
Source§fn clone(&self) -> AlgebraicStructure<T>
fn clone(&self) -> AlgebraicStructure<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Add<Output = T> + Mul<Output = T> + Copy + PartialEq> ClosureUnderOperation<T> for AlgebraicStructure<T>
impl<T: Add<Output = T> + Mul<Output = T> + Copy + PartialEq> ClosureUnderOperation<T> for AlgebraicStructure<T>
fn verify_closure_add(&self, other: &Self) -> boolwhere
Self: AdditiveOperation<T>,
fn verify_closure_mul(&self, other: &Self) -> boolwhere
Self: MultiplicativeOperation<T>,
Source§impl<T: Add<Output = T> + Mul<Output = T> + Copy + PartialEq> Commutativity<T> for AlgebraicStructure<T>
impl<T: Add<Output = T> + Mul<Output = T> + Copy + PartialEq> Commutativity<T> for AlgebraicStructure<T>
fn verify_commutativity_add(&self, other: &Self) -> boolwhere
Self: AdditiveOperation<T>,
fn verify_commutativity_mul(&self, other: &Self) -> boolwhere
Self: MultiplicativeOperation<T>,
Source§impl<T: Debug> Debug for AlgebraicStructure<T>
impl<T: Debug> Debug for AlgebraicStructure<T>
Source§impl Distributivity<f32> for AlgebraicStructure<f32>
impl Distributivity<f32> for AlgebraicStructure<f32>
fn verify_distributivity(&self, b: &Self, c: &Self) -> bool
Source§impl Identity<f32> for AlgebraicStructure<f32>
impl Identity<f32> for AlgebraicStructure<f32>
fn verify_additive_identity(&self, identity: &f32) -> bool
fn verify_multiplicative_identity(&self, identity: &f32) -> bool
fn get_additive_identity() -> f32
fn get_multiplicative_identity() -> f32
Source§impl Inverse<f32> for AlgebraicStructure<f32>
impl Inverse<f32> for AlgebraicStructure<f32>
fn has_additive_inverse(&self) -> bool
fn has_multiplicative_inverse(&self) -> bool
fn get_additive_inverse(&self) -> Option<Self>
fn get_multiplicative_inverse(&self) -> Option<Self>
Source§impl<T: Mul<Output = T> + Copy> MultiplicativeOperation<T> for AlgebraicStructure<T>
impl<T: Mul<Output = T> + Copy> MultiplicativeOperation<T> for AlgebraicStructure<T>
Source§impl<T: PartialEq> PartialEq for AlgebraicStructure<T>
impl<T: PartialEq> PartialEq for AlgebraicStructure<T>
impl<T: Copy> Copy for AlgebraicStructure<T>
impl<T> StructuralPartialEq for AlgebraicStructure<T>
Auto Trait Implementations§
impl<T> Freeze for AlgebraicStructure<T>where
T: Freeze,
impl<T> RefUnwindSafe for AlgebraicStructure<T>where
T: RefUnwindSafe,
impl<T> Send for AlgebraicStructure<T>where
T: Send,
impl<T> Sync for AlgebraicStructure<T>where
T: Sync,
impl<T> Unpin for AlgebraicStructure<T>where
T: Unpin,
impl<T> UnwindSafe for AlgebraicStructure<T>where
T: UnwindSafe,
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