TryNeg

Trait TryNeg 

Source
pub trait TryNeg {
    type Output;
    type Err;

    // Required method
    fn try_neg(self) -> Result<Self::Output, Self::Err>;
}
Expand description

Fallible negation trait.

Required Associated Types§

Required Methods§

Source

fn try_neg(self) -> Result<Self::Output, Self::Err>

Implementations on Foreign Types§

Source§

impl TryNeg for i8

Source§

impl TryNeg for i16

Source§

impl TryNeg for i32

Source§

impl TryNeg for i64

Source§

impl TryNeg for isize

Implementors§