Trait ops::Identity

source ·
pub trait Identity: BinaryOp {
    // Required method
    fn id(&self) -> Self::Set;
}

Required Methods§

source

fn id(&self) -> Self::Set

Implementors§

source§

impl<T> Identity for OpAdd<T>
where &'a T: for<'a> Add<Output = T>, T: for<'a> Sum<&'a T>,