pub trait TryNeg {
type Error;
type Output;
// Required method
fn try_neg(self) -> Result<Self::Output, Self::Error>;
}Expand description
The try trait for Neg.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".