Trait overflower_support::NegWrap [] [src]

pub trait NegWrap {
    type Output;
    fn neg_wrap(self) -> Self::Output;
}

Negate a value, wrap on overflow

This does the same as the std::ops::Neg trait for most types. it is specialized for integer types to wrap on overflow.

Associated Types

the result type of the negation

Required Methods

negate a value, wrap on overflow

Implementors