[][src]Trait try_traits::ops::TryNeg

pub trait TryNeg {
    type Error;
    type Output;
    fn try_neg(self) -> Result<Self::Output, Self::Error>;
}

The try trait for Neg.

Associated Types

type Error

The type returned in the event of an error.

type Output

The type returned after performing the operation.

Loading content...

Required methods

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

The fallible equivalent of Neg::neg.

Loading content...

Implementors

Loading content...