Skip to main content

TryMulAssign

Trait TryMulAssign 

Source
pub trait TryMulAssign<Rhs = Self> {
    type Error;

    // Required method
    fn try_mul_assign(&mut self, other: Rhs) -> Result<(), Self::Error>;
}
Expand description

The try trait for MulAssign.

Required Associated Types§

Source

type Error

The type returned in the event of an error.

Required Methods§

Source

fn try_mul_assign(&mut self, other: Rhs) -> Result<(), Self::Error>

The fallible equivalent of MulAssign::mul_assign.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: MulAssign<Rhs>, Rhs> TryMulAssign<Rhs> for T