Trait ActedMonoidWithSize

Source
pub trait ActedMonoidWithSize: ActedMonoid {
    // Provided method
    fn e_with_size(_size: usize) -> Self::Val { ... }
}
Expand description

長さを保持した作用付きモノイド

Provided Methods§

Source

fn e_with_size(_size: usize) -> Self::Val

区間長 size の「単位区間」を表す集約値を返す

例:Val = (sum, size) のとき,e_with_size(size) = (0, size) のようなもの

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<M> ActedMonoidWithSize for ToActed<M>
where M: Monoid, M::Val: PartialEq,

Source§

impl<T> ActedMonoidWithSize for AddMin<T>
where T: Zero + Clone + Add<Output = T> + Ord + Bounded,

Source§

impl<T> ActedMonoidWithSize for AddSum<T>
where T: Zero + Clone + Add<Output = T> + Mul<Output = T> + FromPrimitive + PartialEq,

Source§

impl<T> ActedMonoidWithSize for UpdateSum<T>
where T: Zero + Clone + Add<Output = T> + Mul<Output = T> + FromPrimitive + PartialEq,

Source§

impl<T: Bounded + Ord + Clone> ActedMonoidWithSize for UpdateMax<T>

Source§

impl<T: Bounded + Ord + Clone> ActedMonoidWithSize for UpdateMin<T>

Source§

impl<T: Bounded + Ord + Clone> ActedMonoidWithSize for UpdateMinMax<T>