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))
.
rusti> std::bool::xor(true, false)
true
rusti> std::bool::xor(true, true)
false
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).