TrySubAssign

Trait TrySubAssign 

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

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

The try trait for SubAssign.

Required Associated Types§

Source

type Error

The type returned in the event of an error.

Required Methods§

Source

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

The fallible equivalent of SubAssign::sub_assign.

Implementors§

Source§

impl<T: SubAssign<Rhs>, Rhs> TrySubAssign<Rhs> for T