Trait frunk::semigroup::Semigroup [] [src]

pub trait Semigroup {
    fn combine(&self, other: &Self) -> Self;
}

A Semigroup is a class of thing that has a definable combine operation

Required Methods

Associative operation taking which combines two values.


assert_eq!(Some(1).combine(&Some(2)), Some(3))Run

Implementors