rust_macios/foundation/
ns_text_checking_result.rs

1use objc::Encode;
2
3use crate::object;
4
5#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy)]
6#[repr(u64)]
7pub enum NSTextCheckingTypes {
8    AllSystemTypes = 0xffffffff,
9    AllCustomTypes = 0xffffffff << 32,
10    AllTypes = (Self::AllSystemTypes as u64 | Self::AllCustomTypes as u64),
11}
12
13unsafe impl Encode for NSTextCheckingTypes {
14    fn encode() -> objc::Encoding {
15        unsafe { objc::Encoding::from_str("Q") }
16    }
17}
18
19object! {
20    unsafe pub struct NSTextCheckingResult;
21}