pub trait TryNeg {
type Output;
type Error;
// Required method
fn try_neg(self) -> Result<Self::Output, Self::Error>;
}
Expand description
Checked negation operator which returns a Result to indicate success or failure.
pub trait TryNeg {
type Output;
type Error;
// Required method
fn try_neg(self) -> Result<Self::Output, Self::Error>;
}
Checked negation operator which returns a Result to indicate success or failure.