objc2_ui_kit/generated/
UIDataDetectors.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4
5use crate::*;
6
7/// [Apple's documentation](https://developer.apple.com/documentation/uikit/uidatadetectortypes?language=objc)
8// NS_OPTIONS
9#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct UIDataDetectorTypes(pub NSUInteger);
12bitflags::bitflags! {
13    impl UIDataDetectorTypes: NSUInteger {
14        #[doc(alias = "UIDataDetectorTypePhoneNumber")]
15        const PhoneNumber = 1<<0;
16        #[doc(alias = "UIDataDetectorTypeLink")]
17        const Link = 1<<1;
18        #[doc(alias = "UIDataDetectorTypeAddress")]
19        const Address = 1<<2;
20        #[doc(alias = "UIDataDetectorTypeCalendarEvent")]
21        const CalendarEvent = 1<<3;
22        #[doc(alias = "UIDataDetectorTypeShipmentTrackingNumber")]
23        const ShipmentTrackingNumber = 1<<4;
24        #[doc(alias = "UIDataDetectorTypeFlightNumber")]
25        const FlightNumber = 1<<5;
26        #[doc(alias = "UIDataDetectorTypeLookupSuggestion")]
27        const LookupSuggestion = 1<<6;
28        #[doc(alias = "UIDataDetectorTypeMoney")]
29        const Money = 1<<7;
30        #[doc(alias = "UIDataDetectorTypePhysicalValue")]
31        const PhysicalValue = 1<<8;
32        #[doc(alias = "UIDataDetectorTypeNone")]
33        const None = 0;
34        #[doc(alias = "UIDataDetectorTypeAll")]
35        const All = NSUIntegerMax as _;
36    }
37}
38
39unsafe impl Encode for UIDataDetectorTypes {
40    const ENCODING: Encoding = NSUInteger::ENCODING;
41}
42
43unsafe impl RefEncode for UIDataDetectorTypes {
44    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
45}