pub trait TryAdd: Sized {
fn try_add(self, rhs: Self) -> Result<Self, ProgramError>;
}Expand description
Try to subtract, return an error on overflow
Required Methods
sourcefn try_add(self, rhs: Self) -> Result<Self, ProgramError>
fn try_add(self, rhs: Self) -> Result<Self, ProgramError>
Add