Trait port_variable_rate_lending_instructions::math::TrySub [−][src]
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
fn try_sub(self, rhs: Self) -> Result<Self, ProgramError>
fn try_sub(self, rhs: Self) -> Result<Self, ProgramError>
Subtract