Trait Semigroup

Source
pub trait Semigroup {
    // Required method
    fn combine(self, other: Self) -> Self;
}

Required Methods§

Source

fn combine(self, other: Self) -> Self

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.

Implementations on Foreign Types§

Source§

impl Semigroup for f32

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for f64

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for i8

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for i16

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for i32

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for i64

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for i128

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for isize

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for u8

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for u16

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for u32

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for u64

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for u128

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for usize

Source§

fn combine(self, other: Self) -> Self

Source§

impl Semigroup for String

Source§

fn combine(self, other: Self) -> Self

Source§

impl<T: Clone> Semigroup for Vec<T>

Source§

fn combine(self, other: Self) -> Self

Implementors§