pub trait TrySub<Rhs = Self> {
type Output;
type Error;
// Required method
fn try_sub(self, rhs: Rhs) -> Result<Self::Output, Self::Error>;
}Expand description
Checked subtraction operator which returns a Result to indicate success or failure.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".