[][src]Trait try_traits::ops::TryAdd

pub trait TryAdd<Rhs = Self> {
    type Error;
    type Output;
    fn try_add(self, other: Rhs) -> Result<Self::Output, Self::Error>;
}

The try trait for Add.

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_add(self, other: Rhs) -> Result<Self::Output, Self::Error>

The fallible equivalent of Add::add.

Loading content...

Implementors

impl<T: Add<Rhs>, Rhs> TryAdd<Rhs> for T[src]

type Error = Infallible

type Output = Self::Output

Loading content...