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
sourcefn try_sub(self, rhs: Self) -> Result<Self, ProgramError>
fn try_sub(self, rhs: Self) -> Result<Self, ProgramError>
Subtract