Skip to main content

check

Function check 

Source
pub fn check(condition: bool, msg: impl Display) -> Result<()>
Expand description

Check a boolean condition; return Err(Error::General(msg)) if false.