Trait overflower_support::NegPanic [] [src]

pub trait NegPanic {
    type Output;
    fn neg_panic(self) -> Self::Output;
}

Negate a value, panic on overflow

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

Associated Types

the result type of the negation

Required Methods

negate a value, panic on overflow

Implementors