pub trait Neg { type Output; // Required method fn neg(self) -> Self::Output; }
The resulting type after applying the - operator.
-
Performs the unary - operation.
let x: i32 = 12; assert_eq!(-x, -12);