objc2_home_kit/generated/
HMNumberRange.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct HMNumberRange;
16);
17
18unsafe impl Send for HMNumberRange {}
19
20unsafe impl Sync for HMNumberRange {}
21
22unsafe impl NSObjectProtocol for HMNumberRange {}
23
24impl HMNumberRange {
25 extern_methods!(
26 #[unsafe(method(init))]
27 #[unsafe(method_family = init)]
28 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
29
30 #[unsafe(method(numberRangeWithMinValue:maxValue:))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn numberRangeWithMinValue_maxValue(
40 min_value: &NSNumber,
41 max_value: &NSNumber,
42 ) -> Retained<Self>;
43
44 #[unsafe(method(numberRangeWithMinValue:))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn numberRangeWithMinValue(min_value: &NSNumber) -> Retained<Self>;
51
52 #[unsafe(method(numberRangeWithMaxValue:))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn numberRangeWithMaxValue(max_value: &NSNumber) -> Retained<Self>;
59
60 #[unsafe(method(minValue))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn minValue(&self) -> Option<Retained<NSNumber>>;
64
65 #[unsafe(method(maxValue))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn maxValue(&self) -> Option<Retained<NSNumber>>;
69 );
70}
71
72impl HMNumberRange {
74 extern_methods!(
75 #[unsafe(method(new))]
76 #[unsafe(method_family = new)]
77 pub unsafe fn new() -> Retained<Self>;
78 );
79}