Trait TryAdd

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

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

失敗可能性のある足し算を表す。

Required Associated Types§

Source

type Output

返り値の型

Required Methods§

Source

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

失敗可能性のある足し算を行う。

Implementors§