Function std::bool::implies

pub fn implies(a: bool, b: bool) -> bool

Implication between two boolean values.

Implication is often phrased as 'if a then b.'

'if a then b' is equivalent to !a || b.

Examples

rusti> std::bool::implies(true, true)
true
rusti> std::bool::implies(true, false)
false