pub trait MulGroup:
MulMonoid
+ InvMonoid
+ Div<Output = Self>
+ DivAssign { }Expand description
Represents a Multiplicative Group.
A multiplicative group is a Group where the binary operation is
multiplication (*).
§Mathematical Definition
A set G is a group under multiplication if it satisfies:
- Closure:
a * bis inG. (Implicit in Rust). - Associativity:
(a * b) * c = a * (b * c). (Implied byMulMonoid). - Identity Element: There is an element
1such thata * 1 = a. (Provided by theMulMonoid->Onetrait). - Inverse Element: For each
a, there is an inversea⁻¹such thata * a⁻¹ = 1. (Provided by theInvMonoidtrait).
In a Field, the set of all non-zero elements forms a multiplicative group.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.