Type Definition objc_sys::NSUInteger
source · [−]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 objc_sys::NSUInteger;
// Or:
// use objc2::ffi::NSUInteger;
// use objc2_foundation::NSUInteger;
extern "C" {
fn some_external_function() -> NSUInteger;
}
#[repr(usize)] // NSUInteger
enum NSRoundingMode {
NSRoundPlain = 0,
NSRoundDown = 1,
NSRoundUp = 2,
NSRoundBankers = 3,
};