pub enum OpMul<T> {
OpMulV,
_Marker(T),
}
Expand description
積を返す演算を持つ。
std::ops::Mul
により定義される。
単位元は One
、逆元は MulRecip
で定義する。
結合法則を満たすときは MulAssoc
、交換法則を満たすときは MulComm
を実装することで示す。
Variants§
Trait Implementations§
source§impl<T: PartialEq> PartialEq<OpMul<T>> for OpMul<T>
impl<T: PartialEq> PartialEq<OpMul<T>> for OpMul<T>
source§impl<T> PartialRecip for OpMul<T>where
T: Mul<Output = T> + Eq + Sized + MulRecip<Output = T>,
impl<T> PartialRecip for OpMul<T>where T: Mul<Output = T> + Eq + Sized + MulRecip<Output = T>,
impl<T> Associative for OpMul<T>where T: Mul<Output = T> + Eq + Sized + MulAssoc,
impl<T> Commutative for OpMul<T>where T: Mul<Output = T> + Eq + Sized + MulComm,
impl<T: Copy> Copy for OpMul<T>
impl Distributive<OpAdd<i128>> for OpMul<i128>
impl Distributive<OpAdd<i16>> for OpMul<i16>
impl Distributive<OpAdd<i32>> for OpMul<i32>
impl Distributive<OpAdd<i64>> for OpMul<i64>
impl Distributive<OpAdd<i8>> for OpMul<i8>
impl Distributive<OpAdd<isize>> for OpMul<isize>
impl Distributive<OpAdd<u128>> for OpMul<u128>
impl Distributive<OpAdd<u16>> for OpMul<u16>
impl Distributive<OpAdd<u32>> for OpMul<u32>
impl Distributive<OpAdd<u64>> for OpMul<u64>
impl Distributive<OpAdd<u8>> for OpMul<u8>
impl Distributive<OpAdd<usize>> for OpMul<usize>
impl<T: Eq> Eq for OpMul<T>
impl<T> StructuralEq for OpMul<T>
impl<T> StructuralPartialEq for OpMul<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for OpMul<T>where T: RefUnwindSafe,
impl<T> Send for OpMul<T>where T: Send,
impl<T> Sync for OpMul<T>where T: Sync,
impl<T> Unpin for OpMul<T>where T: Unpin,
impl<T> UnwindSafe for OpMul<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