Trait TrySub

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

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

失敗可能性のある引き算を表す。

Required Associated Types§

Source

type Output

返り値の型

Required Methods§

Source

fn try_sub(self, rhs: Rhs) -> Option<Self::Output>

失敗可能性のある引き算を行う。

Implementors§