[][src]Trait try_traits::ops::TryMul

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

The try trait for Mul.

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

The fallible equivalent of Mul::mul.

Loading content...

Implementors

impl<T: Mul<Rhs>, Rhs> TryMul<Rhs> for T[src]

type Error = Infallible

type Output = Self::Output

Loading content...