[][src]Trait sfcpl::monoid::Monoid

pub trait Monoid: Sized {
    fn identity() -> Self;
fn op(x: &Self, y: &Self) -> Self; fn fold(v: &[Self]) -> Self { ... } }

単位元が定義される T -> T -> T型の演算

Required methods

fn identity() -> Self

fn op(x: &Self, y: &Self) -> Self

Loading content...

Provided methods

fn fold(v: &[Self]) -> Self

Loading content...

Implementors

Loading content...