TrySub

Trait TrySub 

Source
pub trait TrySub<RHS = Self> {
    type Output;
    type Err;

    // Required method
    fn try_sub(self, rhs: RHS) -> Result<Self::Output, Self::Err>;
}
Expand description

Fallible subtraction trait.

Required Associated Types§

Required Methods§

Source

fn try_sub(self, rhs: RHS) -> Result<Self::Output, Self::Err>

Implementations on Foreign Types§

Source§

impl TrySub for i8

Source§

impl TrySub for i16

Source§

impl TrySub for i32

Source§

impl TrySub for i64

Source§

impl TrySub for isize

Source§

impl TrySub for u8

Source§

impl TrySub for u16

Source§

impl TrySub for u32

Source§

impl TrySub for u64

Source§

impl TrySub for usize

Implementors§