Skip to main content

check_condition

Function check_condition 

Source
pub fn check_condition<E>(condition: bool, err: E) -> ProgramResult
where E: Into<ProgramError>,
Expand description

Helper: check a condition is true and return an error if not