simba::scalar

Trait ClosedSub

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

Trait alias for Sub 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> ClosedSub<Right> for T
where T: Sub<Right, Output = T> + SubAssign<Right>,