pub trait TrySub: Sized {
    fn try_sub(self, rhs: Self) -> Result<Self, ProgramError>;
}
Expand description

Try to subtract, return an error on underflow

Required Methods

Subtract

Implementors