Objects that implement the unary - operator.
trait Neg {
type Output;
/* Required methods */
fn neg(self) -> <Self as Neg>::Output
}| Name | Description |
|---|---|
| Output | The output of the operator. |
| Receiver | Name | Description |
|---|---|---|
self | neg | The method that will be called by the operator. |