objc2_foundation/generated/
NSLocalizedNumberFormatRule.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nslocalizednumberformatrule?language=objc)
10    #[unsafe(super(NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    pub struct NSLocalizedNumberFormatRule;
13);
14
15#[cfg(feature = "NSObject")]
16unsafe impl NSCoding for NSLocalizedNumberFormatRule {}
17
18#[cfg(feature = "NSObject")]
19unsafe impl NSCopying for NSLocalizedNumberFormatRule {}
20
21#[cfg(feature = "NSObject")]
22unsafe impl CopyingHelper for NSLocalizedNumberFormatRule {
23    type Result = Self;
24}
25
26unsafe impl NSObjectProtocol for NSLocalizedNumberFormatRule {}
27
28#[cfg(feature = "NSObject")]
29unsafe impl NSSecureCoding for NSLocalizedNumberFormatRule {}
30
31impl NSLocalizedNumberFormatRule {
32    extern_methods!(
33        #[unsafe(method(new))]
34        #[unsafe(method_family = new)]
35        pub unsafe fn new() -> Retained<Self>;
36
37        #[unsafe(method(init))]
38        #[unsafe(method_family = init)]
39        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
40
41        #[unsafe(method(automatic))]
42        #[unsafe(method_family = none)]
43        pub unsafe fn automatic() -> Retained<NSLocalizedNumberFormatRule>;
44    );
45}