simba::scalar

Trait ClosedAdd

Source
pub trait ClosedAdd<Right = Self>: Sized + Add<Right, Output = Self> { }
Expand description

Trait alias for Add with result of type 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.

Implementors§

Source§

impl<T, Right> ClosedAdd<Right> for T
where T: Add<Right, Output = T> + AddAssign<Right>,