LeftModule

Trait LeftModule 

Source
pub trait LeftModule: AbelianGroup
where Self::Ring: Mul<Self>,
{ type Ring: Ring; }
Expand description

A trait representing a left module over a ring.

A left module is a generalization of a vector space, where the scalars lie in a ring rather than a field. This trait combines the requirements for an Abelian group with scalar multiplication by elements of the ring on the left.

Required Associated Types§

Source

type Ring: Ring

The ring over which this module is defined.

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.

Implementors§

Source§

impl LeftModule for Boolean

Source§

impl<F: Field + Copy + Mul<Self>> LeftModule for DynamicVector<F>

Source§

type Ring = F

Source§

impl<F: Field + Copy + Debug + Mul<Self>, const N: usize> LeftModule for CliffordAlgebraElement<'_, F, N>
where [(); { _ }]:,

Source§

type Ring = F

Source§

impl<R: Ring + Mul<Self>> LeftModule for TrivialModule<R>

Source§

type Ring = R

Source§

impl<const M: usize, F: Field + Copy + Mul<Self>> LeftModule for FixedVector<M, F>

Source§

type Ring = F