pub type BOOL = bool;
Expand description
The Objective-C BOOL
type.
The type of this varies across platforms, so to convert an it into a Rust
bool
, always compare it with YES
or NO
.
Note that this type implements objc2_encode::Encode
and
objc2_encode::RefEncode
, but the RefEncode
implementation is wrong
on some platforms! You should only use this on FFI boundaries, otherwise
prefer objc2::runtime::Bool
.
See also the corresponding documentation entry.