Function std::bool::xor

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

An 'exclusive or' of two boolean values.

'exclusive or' is identical to or(and(a, not(b)), and(not(a), b)).

Examples

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