AnnotatedSemigroup

Trait AnnotatedSemigroup 

Source
pub trait AnnotatedSemigroup<A>: Sized + Semigroup {
    // Required method
    fn annotated_op(
        base: Annotated<Self, A>,
        other: Annotated<Self, A>,
    ) -> Annotated<Self, A>;
}
Expand description

AnnotatedSemigroup is a Semigroup that has an annotation.

Required Methods§

Source

fn annotated_op( base: Annotated<Self, A>, other: Annotated<Self, A>, ) -> Annotated<Self, A>

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<A, T: Ord> AnnotatedSemigroup<A> for Max<T>

Source§

impl<A, T: Ord> AnnotatedSemigroup<A> for Min<T>

Source§

impl<T, A> AnnotatedSemigroup<A> for Coalesce<T>

Source§

impl<T, A> AnnotatedSemigroup<A> for Overwrite<T>

Source§

impl<T: IntoIterator + FromIterator<T::Item>, A: IntoIterator + FromIterator<A::Item>> AnnotatedSemigroup<A> for Concat<T>

Source§

impl<T: AnnotatedSemigroup<A>, A> AnnotatedSemigroup<Option<A>> for OptionMonoid<T>

Available on crate feature monoid only.