Trait TryNeg
try_traits::ops
pub trait TryNeg { type Error; type Output; fn try_neg(self) -> Result<Self::Output, Self::Error>; }
The try trait for Neg.
Neg
type Error
The type returned in the event of an error.
type Output
The type returned after performing the operation.
fn try_neg(self) -> Result<Self::Output, Self::Error>
The fallible equivalent of Neg::neg.
Neg::neg