pub type NSUInteger = usize;Expand description
Describes an unsigned integer.
This is guaranteed to always be a type-alias to usize. That means it
is valid to use #[repr(usize)] on enums and structs with size
NSUInteger.
See also the corresponding documentation entry.
ยงExamples
use objc2::ffi::NSUInteger;
extern "C-unwind" {
fn some_external_function() -> NSUInteger;
}use core::mem::size_of;
use objc2::ffi::NSUInteger;
#[repr(usize)]
enum CLRegionState {
Unknown = 0,
Inside = 1,
Outside = 2,
}
assert_eq!(size_of::<CLRegionState>(), size_of::<NSUInteger>());