objc2_foundation/generated/
NSUnit.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitconverter?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct NSUnitConverter;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for NSUnitConverter {}
18);
19
20impl NSUnitConverter {
21    extern_methods!(
22        #[unsafe(method(baseUnitValueFromValue:))]
23        #[unsafe(method_family = none)]
24        pub fn baseUnitValueFromValue(&self, value: c_double) -> c_double;
25
26        #[unsafe(method(valueFromBaseUnitValue:))]
27        #[unsafe(method_family = none)]
28        pub fn valueFromBaseUnitValue(&self, base_unit_value: c_double) -> c_double;
29    );
30}
31
32/// Methods declared on superclass `NSObject`.
33impl NSUnitConverter {
34    extern_methods!(
35        #[unsafe(method(init))]
36        #[unsafe(method_family = init)]
37        pub fn init(this: Allocated<Self>) -> Retained<Self>;
38
39        #[unsafe(method(new))]
40        #[unsafe(method_family = new)]
41        pub fn new() -> Retained<Self>;
42    );
43}
44
45impl DefaultRetained for NSUnitConverter {
46    #[inline]
47    fn default_retained() -> Retained<Self> {
48        Self::new()
49    }
50}
51
52extern_class!(
53    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitconverterlinear?language=objc)
54    #[unsafe(super(NSUnitConverter, NSObject))]
55    #[derive(Debug, PartialEq, Eq, Hash)]
56    pub struct NSUnitConverterLinear;
57);
58
59#[cfg(feature = "NSObject")]
60extern_conformance!(
61    unsafe impl NSCoding for NSUnitConverterLinear {}
62);
63
64extern_conformance!(
65    unsafe impl NSObjectProtocol for NSUnitConverterLinear {}
66);
67
68#[cfg(feature = "NSObject")]
69extern_conformance!(
70    unsafe impl NSSecureCoding for NSUnitConverterLinear {}
71);
72
73impl NSUnitConverterLinear {
74    extern_methods!(
75        #[unsafe(method(coefficient))]
76        #[unsafe(method_family = none)]
77        pub fn coefficient(&self) -> c_double;
78
79        #[unsafe(method(constant))]
80        #[unsafe(method_family = none)]
81        pub fn constant(&self) -> c_double;
82
83        #[unsafe(method(initWithCoefficient:))]
84        #[unsafe(method_family = init)]
85        pub fn initWithCoefficient(this: Allocated<Self>, coefficient: c_double) -> Retained<Self>;
86
87        #[unsafe(method(initWithCoefficient:constant:))]
88        #[unsafe(method_family = init)]
89        pub fn initWithCoefficient_constant(
90            this: Allocated<Self>,
91            coefficient: c_double,
92            constant: c_double,
93        ) -> Retained<Self>;
94    );
95}
96
97/// Methods declared on superclass `NSObject`.
98impl NSUnitConverterLinear {
99    extern_methods!(
100        #[unsafe(method(init))]
101        #[unsafe(method_family = init)]
102        pub fn init(this: Allocated<Self>) -> Retained<Self>;
103
104        #[unsafe(method(new))]
105        #[unsafe(method_family = new)]
106        pub fn new() -> Retained<Self>;
107    );
108}
109
110impl DefaultRetained for NSUnitConverterLinear {
111    #[inline]
112    fn default_retained() -> Retained<Self> {
113        Self::new()
114    }
115}
116
117extern_class!(
118    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunit?language=objc)
119    #[unsafe(super(NSObject))]
120    #[derive(Debug, PartialEq, Eq, Hash)]
121    pub struct NSUnit;
122);
123
124unsafe impl Send for NSUnit {}
125
126unsafe impl Sync for NSUnit {}
127
128#[cfg(feature = "NSObject")]
129extern_conformance!(
130    unsafe impl NSCoding for NSUnit {}
131);
132
133#[cfg(feature = "NSObject")]
134extern_conformance!(
135    unsafe impl NSCopying for NSUnit {}
136);
137
138#[cfg(feature = "NSObject")]
139unsafe impl CopyingHelper for NSUnit {
140    type Result = Self;
141}
142
143extern_conformance!(
144    unsafe impl NSObjectProtocol for NSUnit {}
145);
146
147#[cfg(feature = "NSObject")]
148extern_conformance!(
149    unsafe impl NSSecureCoding for NSUnit {}
150);
151
152impl NSUnit {
153    extern_methods!(
154        #[cfg(feature = "NSString")]
155        #[unsafe(method(symbol))]
156        #[unsafe(method_family = none)]
157        pub fn symbol(&self) -> Retained<NSString>;
158
159        #[unsafe(method(init))]
160        #[unsafe(method_family = init)]
161        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
162
163        #[unsafe(method(new))]
164        #[unsafe(method_family = new)]
165        pub unsafe fn new() -> Retained<Self>;
166
167        #[cfg(feature = "NSString")]
168        #[unsafe(method(initWithSymbol:))]
169        #[unsafe(method_family = init)]
170        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
171    );
172}
173
174extern_class!(
175    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsdimension?language=objc)
176    #[unsafe(super(NSUnit, NSObject))]
177    #[derive(Debug, PartialEq, Eq, Hash)]
178    pub struct NSDimension;
179);
180
181unsafe impl Send for NSDimension {}
182
183unsafe impl Sync for NSDimension {}
184
185#[cfg(feature = "NSObject")]
186extern_conformance!(
187    unsafe impl NSCoding for NSDimension {}
188);
189
190#[cfg(feature = "NSObject")]
191extern_conformance!(
192    unsafe impl NSCopying for NSDimension {}
193);
194
195#[cfg(feature = "NSObject")]
196unsafe impl CopyingHelper for NSDimension {
197    type Result = Self;
198}
199
200extern_conformance!(
201    unsafe impl NSObjectProtocol for NSDimension {}
202);
203
204#[cfg(feature = "NSObject")]
205extern_conformance!(
206    unsafe impl NSSecureCoding for NSDimension {}
207);
208
209impl NSDimension {
210    extern_methods!(
211        #[unsafe(method(converter))]
212        #[unsafe(method_family = none)]
213        pub fn converter(&self) -> Retained<NSUnitConverter>;
214
215        #[cfg(feature = "NSString")]
216        #[unsafe(method(initWithSymbol:converter:))]
217        #[unsafe(method_family = init)]
218        pub fn initWithSymbol_converter(
219            this: Allocated<Self>,
220            symbol: &NSString,
221            converter: &NSUnitConverter,
222        ) -> Retained<Self>;
223
224        #[unsafe(method(baseUnit))]
225        #[unsafe(method_family = none)]
226        pub fn baseUnit() -> Retained<Self>;
227    );
228}
229
230/// Methods declared on superclass `NSUnit`.
231impl NSDimension {
232    extern_methods!(
233        #[unsafe(method(init))]
234        #[unsafe(method_family = init)]
235        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
236
237        #[unsafe(method(new))]
238        #[unsafe(method_family = new)]
239        pub unsafe fn new() -> Retained<Self>;
240
241        #[cfg(feature = "NSString")]
242        #[unsafe(method(initWithSymbol:))]
243        #[unsafe(method_family = init)]
244        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
245    );
246}
247
248extern_class!(
249    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitacceleration?language=objc)
250    #[unsafe(super(NSDimension, NSUnit, NSObject))]
251    #[derive(Debug, PartialEq, Eq, Hash)]
252    pub struct NSUnitAcceleration;
253);
254
255unsafe impl Send for NSUnitAcceleration {}
256
257unsafe impl Sync for NSUnitAcceleration {}
258
259#[cfg(feature = "NSObject")]
260extern_conformance!(
261    unsafe impl NSCoding for NSUnitAcceleration {}
262);
263
264#[cfg(feature = "NSObject")]
265extern_conformance!(
266    unsafe impl NSCopying for NSUnitAcceleration {}
267);
268
269#[cfg(feature = "NSObject")]
270unsafe impl CopyingHelper for NSUnitAcceleration {
271    type Result = Self;
272}
273
274extern_conformance!(
275    unsafe impl NSObjectProtocol for NSUnitAcceleration {}
276);
277
278#[cfg(feature = "NSObject")]
279extern_conformance!(
280    unsafe impl NSSecureCoding for NSUnitAcceleration {}
281);
282
283impl NSUnitAcceleration {
284    extern_methods!(
285        #[unsafe(method(metersPerSecondSquared))]
286        #[unsafe(method_family = none)]
287        pub fn metersPerSecondSquared() -> Retained<NSUnitAcceleration>;
288
289        #[unsafe(method(gravity))]
290        #[unsafe(method_family = none)]
291        pub fn gravity() -> Retained<NSUnitAcceleration>;
292    );
293}
294
295/// Methods declared on superclass `NSDimension`.
296impl NSUnitAcceleration {
297    extern_methods!(
298        #[cfg(feature = "NSString")]
299        #[unsafe(method(initWithSymbol:converter:))]
300        #[unsafe(method_family = init)]
301        pub fn initWithSymbol_converter(
302            this: Allocated<Self>,
303            symbol: &NSString,
304            converter: &NSUnitConverter,
305        ) -> Retained<Self>;
306
307        #[unsafe(method(baseUnit))]
308        #[unsafe(method_family = none)]
309        pub fn baseUnit() -> Retained<Self>;
310    );
311}
312
313/// Methods declared on superclass `NSUnit`.
314impl NSUnitAcceleration {
315    extern_methods!(
316        #[unsafe(method(init))]
317        #[unsafe(method_family = init)]
318        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
319
320        #[unsafe(method(new))]
321        #[unsafe(method_family = new)]
322        pub unsafe fn new() -> Retained<Self>;
323
324        #[cfg(feature = "NSString")]
325        #[unsafe(method(initWithSymbol:))]
326        #[unsafe(method_family = init)]
327        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
328    );
329}
330
331extern_class!(
332    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitangle?language=objc)
333    #[unsafe(super(NSDimension, NSUnit, NSObject))]
334    #[derive(Debug, PartialEq, Eq, Hash)]
335    pub struct NSUnitAngle;
336);
337
338unsafe impl Send for NSUnitAngle {}
339
340unsafe impl Sync for NSUnitAngle {}
341
342#[cfg(feature = "NSObject")]
343extern_conformance!(
344    unsafe impl NSCoding for NSUnitAngle {}
345);
346
347#[cfg(feature = "NSObject")]
348extern_conformance!(
349    unsafe impl NSCopying for NSUnitAngle {}
350);
351
352#[cfg(feature = "NSObject")]
353unsafe impl CopyingHelper for NSUnitAngle {
354    type Result = Self;
355}
356
357extern_conformance!(
358    unsafe impl NSObjectProtocol for NSUnitAngle {}
359);
360
361#[cfg(feature = "NSObject")]
362extern_conformance!(
363    unsafe impl NSSecureCoding for NSUnitAngle {}
364);
365
366impl NSUnitAngle {
367    extern_methods!(
368        #[unsafe(method(degrees))]
369        #[unsafe(method_family = none)]
370        pub fn degrees() -> Retained<NSUnitAngle>;
371
372        #[unsafe(method(arcMinutes))]
373        #[unsafe(method_family = none)]
374        pub fn arcMinutes() -> Retained<NSUnitAngle>;
375
376        #[unsafe(method(arcSeconds))]
377        #[unsafe(method_family = none)]
378        pub fn arcSeconds() -> Retained<NSUnitAngle>;
379
380        #[unsafe(method(radians))]
381        #[unsafe(method_family = none)]
382        pub fn radians() -> Retained<NSUnitAngle>;
383
384        #[unsafe(method(gradians))]
385        #[unsafe(method_family = none)]
386        pub fn gradians() -> Retained<NSUnitAngle>;
387
388        #[unsafe(method(revolutions))]
389        #[unsafe(method_family = none)]
390        pub fn revolutions() -> Retained<NSUnitAngle>;
391    );
392}
393
394/// Methods declared on superclass `NSDimension`.
395impl NSUnitAngle {
396    extern_methods!(
397        #[cfg(feature = "NSString")]
398        #[unsafe(method(initWithSymbol:converter:))]
399        #[unsafe(method_family = init)]
400        pub fn initWithSymbol_converter(
401            this: Allocated<Self>,
402            symbol: &NSString,
403            converter: &NSUnitConverter,
404        ) -> Retained<Self>;
405
406        #[unsafe(method(baseUnit))]
407        #[unsafe(method_family = none)]
408        pub fn baseUnit() -> Retained<Self>;
409    );
410}
411
412/// Methods declared on superclass `NSUnit`.
413impl NSUnitAngle {
414    extern_methods!(
415        #[unsafe(method(init))]
416        #[unsafe(method_family = init)]
417        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
418
419        #[unsafe(method(new))]
420        #[unsafe(method_family = new)]
421        pub unsafe fn new() -> Retained<Self>;
422
423        #[cfg(feature = "NSString")]
424        #[unsafe(method(initWithSymbol:))]
425        #[unsafe(method_family = init)]
426        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
427    );
428}
429
430extern_class!(
431    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitarea?language=objc)
432    #[unsafe(super(NSDimension, NSUnit, NSObject))]
433    #[derive(Debug, PartialEq, Eq, Hash)]
434    pub struct NSUnitArea;
435);
436
437unsafe impl Send for NSUnitArea {}
438
439unsafe impl Sync for NSUnitArea {}
440
441#[cfg(feature = "NSObject")]
442extern_conformance!(
443    unsafe impl NSCoding for NSUnitArea {}
444);
445
446#[cfg(feature = "NSObject")]
447extern_conformance!(
448    unsafe impl NSCopying for NSUnitArea {}
449);
450
451#[cfg(feature = "NSObject")]
452unsafe impl CopyingHelper for NSUnitArea {
453    type Result = Self;
454}
455
456extern_conformance!(
457    unsafe impl NSObjectProtocol for NSUnitArea {}
458);
459
460#[cfg(feature = "NSObject")]
461extern_conformance!(
462    unsafe impl NSSecureCoding for NSUnitArea {}
463);
464
465impl NSUnitArea {
466    extern_methods!(
467        #[unsafe(method(squareMegameters))]
468        #[unsafe(method_family = none)]
469        pub fn squareMegameters() -> Retained<NSUnitArea>;
470
471        #[unsafe(method(squareKilometers))]
472        #[unsafe(method_family = none)]
473        pub fn squareKilometers() -> Retained<NSUnitArea>;
474
475        #[unsafe(method(squareMeters))]
476        #[unsafe(method_family = none)]
477        pub fn squareMeters() -> Retained<NSUnitArea>;
478
479        #[unsafe(method(squareCentimeters))]
480        #[unsafe(method_family = none)]
481        pub fn squareCentimeters() -> Retained<NSUnitArea>;
482
483        #[unsafe(method(squareMillimeters))]
484        #[unsafe(method_family = none)]
485        pub fn squareMillimeters() -> Retained<NSUnitArea>;
486
487        #[unsafe(method(squareMicrometers))]
488        #[unsafe(method_family = none)]
489        pub fn squareMicrometers() -> Retained<NSUnitArea>;
490
491        #[unsafe(method(squareNanometers))]
492        #[unsafe(method_family = none)]
493        pub fn squareNanometers() -> Retained<NSUnitArea>;
494
495        #[unsafe(method(squareInches))]
496        #[unsafe(method_family = none)]
497        pub fn squareInches() -> Retained<NSUnitArea>;
498
499        #[unsafe(method(squareFeet))]
500        #[unsafe(method_family = none)]
501        pub fn squareFeet() -> Retained<NSUnitArea>;
502
503        #[unsafe(method(squareYards))]
504        #[unsafe(method_family = none)]
505        pub fn squareYards() -> Retained<NSUnitArea>;
506
507        #[unsafe(method(squareMiles))]
508        #[unsafe(method_family = none)]
509        pub fn squareMiles() -> Retained<NSUnitArea>;
510
511        #[unsafe(method(acres))]
512        #[unsafe(method_family = none)]
513        pub fn acres() -> Retained<NSUnitArea>;
514
515        #[unsafe(method(ares))]
516        #[unsafe(method_family = none)]
517        pub fn ares() -> Retained<NSUnitArea>;
518
519        #[unsafe(method(hectares))]
520        #[unsafe(method_family = none)]
521        pub fn hectares() -> Retained<NSUnitArea>;
522    );
523}
524
525/// Methods declared on superclass `NSDimension`.
526impl NSUnitArea {
527    extern_methods!(
528        #[cfg(feature = "NSString")]
529        #[unsafe(method(initWithSymbol:converter:))]
530        #[unsafe(method_family = init)]
531        pub fn initWithSymbol_converter(
532            this: Allocated<Self>,
533            symbol: &NSString,
534            converter: &NSUnitConverter,
535        ) -> Retained<Self>;
536
537        #[unsafe(method(baseUnit))]
538        #[unsafe(method_family = none)]
539        pub fn baseUnit() -> Retained<Self>;
540    );
541}
542
543/// Methods declared on superclass `NSUnit`.
544impl NSUnitArea {
545    extern_methods!(
546        #[unsafe(method(init))]
547        #[unsafe(method_family = init)]
548        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
549
550        #[unsafe(method(new))]
551        #[unsafe(method_family = new)]
552        pub unsafe fn new() -> Retained<Self>;
553
554        #[cfg(feature = "NSString")]
555        #[unsafe(method(initWithSymbol:))]
556        #[unsafe(method_family = init)]
557        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
558    );
559}
560
561extern_class!(
562    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitconcentrationmass?language=objc)
563    #[unsafe(super(NSDimension, NSUnit, NSObject))]
564    #[derive(Debug, PartialEq, Eq, Hash)]
565    pub struct NSUnitConcentrationMass;
566);
567
568unsafe impl Send for NSUnitConcentrationMass {}
569
570unsafe impl Sync for NSUnitConcentrationMass {}
571
572#[cfg(feature = "NSObject")]
573extern_conformance!(
574    unsafe impl NSCoding for NSUnitConcentrationMass {}
575);
576
577#[cfg(feature = "NSObject")]
578extern_conformance!(
579    unsafe impl NSCopying for NSUnitConcentrationMass {}
580);
581
582#[cfg(feature = "NSObject")]
583unsafe impl CopyingHelper for NSUnitConcentrationMass {
584    type Result = Self;
585}
586
587extern_conformance!(
588    unsafe impl NSObjectProtocol for NSUnitConcentrationMass {}
589);
590
591#[cfg(feature = "NSObject")]
592extern_conformance!(
593    unsafe impl NSSecureCoding for NSUnitConcentrationMass {}
594);
595
596impl NSUnitConcentrationMass {
597    extern_methods!(
598        #[unsafe(method(gramsPerLiter))]
599        #[unsafe(method_family = none)]
600        pub fn gramsPerLiter() -> Retained<NSUnitConcentrationMass>;
601
602        #[unsafe(method(milligramsPerDeciliter))]
603        #[unsafe(method_family = none)]
604        pub fn milligramsPerDeciliter() -> Retained<NSUnitConcentrationMass>;
605
606        #[unsafe(method(millimolesPerLiterWithGramsPerMole:))]
607        #[unsafe(method_family = none)]
608        pub fn millimolesPerLiterWithGramsPerMole(
609            grams_per_mole: c_double,
610        ) -> Retained<NSUnitConcentrationMass>;
611    );
612}
613
614/// Methods declared on superclass `NSDimension`.
615impl NSUnitConcentrationMass {
616    extern_methods!(
617        #[cfg(feature = "NSString")]
618        #[unsafe(method(initWithSymbol:converter:))]
619        #[unsafe(method_family = init)]
620        pub fn initWithSymbol_converter(
621            this: Allocated<Self>,
622            symbol: &NSString,
623            converter: &NSUnitConverter,
624        ) -> Retained<Self>;
625
626        #[unsafe(method(baseUnit))]
627        #[unsafe(method_family = none)]
628        pub fn baseUnit() -> Retained<Self>;
629    );
630}
631
632/// Methods declared on superclass `NSUnit`.
633impl NSUnitConcentrationMass {
634    extern_methods!(
635        #[unsafe(method(init))]
636        #[unsafe(method_family = init)]
637        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
638
639        #[unsafe(method(new))]
640        #[unsafe(method_family = new)]
641        pub unsafe fn new() -> Retained<Self>;
642
643        #[cfg(feature = "NSString")]
644        #[unsafe(method(initWithSymbol:))]
645        #[unsafe(method_family = init)]
646        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
647    );
648}
649
650extern_class!(
651    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitdispersion?language=objc)
652    #[unsafe(super(NSDimension, NSUnit, NSObject))]
653    #[derive(Debug, PartialEq, Eq, Hash)]
654    pub struct NSUnitDispersion;
655);
656
657unsafe impl Send for NSUnitDispersion {}
658
659unsafe impl Sync for NSUnitDispersion {}
660
661#[cfg(feature = "NSObject")]
662extern_conformance!(
663    unsafe impl NSCoding for NSUnitDispersion {}
664);
665
666#[cfg(feature = "NSObject")]
667extern_conformance!(
668    unsafe impl NSCopying for NSUnitDispersion {}
669);
670
671#[cfg(feature = "NSObject")]
672unsafe impl CopyingHelper for NSUnitDispersion {
673    type Result = Self;
674}
675
676extern_conformance!(
677    unsafe impl NSObjectProtocol for NSUnitDispersion {}
678);
679
680#[cfg(feature = "NSObject")]
681extern_conformance!(
682    unsafe impl NSSecureCoding for NSUnitDispersion {}
683);
684
685impl NSUnitDispersion {
686    extern_methods!(
687        #[unsafe(method(partsPerMillion))]
688        #[unsafe(method_family = none)]
689        pub fn partsPerMillion() -> Retained<NSUnitDispersion>;
690    );
691}
692
693/// Methods declared on superclass `NSDimension`.
694impl NSUnitDispersion {
695    extern_methods!(
696        #[cfg(feature = "NSString")]
697        #[unsafe(method(initWithSymbol:converter:))]
698        #[unsafe(method_family = init)]
699        pub fn initWithSymbol_converter(
700            this: Allocated<Self>,
701            symbol: &NSString,
702            converter: &NSUnitConverter,
703        ) -> Retained<Self>;
704
705        #[unsafe(method(baseUnit))]
706        #[unsafe(method_family = none)]
707        pub fn baseUnit() -> Retained<Self>;
708    );
709}
710
711/// Methods declared on superclass `NSUnit`.
712impl NSUnitDispersion {
713    extern_methods!(
714        #[unsafe(method(init))]
715        #[unsafe(method_family = init)]
716        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
717
718        #[unsafe(method(new))]
719        #[unsafe(method_family = new)]
720        pub unsafe fn new() -> Retained<Self>;
721
722        #[cfg(feature = "NSString")]
723        #[unsafe(method(initWithSymbol:))]
724        #[unsafe(method_family = init)]
725        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
726    );
727}
728
729extern_class!(
730    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitduration?language=objc)
731    #[unsafe(super(NSDimension, NSUnit, NSObject))]
732    #[derive(Debug, PartialEq, Eq, Hash)]
733    pub struct NSUnitDuration;
734);
735
736unsafe impl Send for NSUnitDuration {}
737
738unsafe impl Sync for NSUnitDuration {}
739
740#[cfg(feature = "NSObject")]
741extern_conformance!(
742    unsafe impl NSCoding for NSUnitDuration {}
743);
744
745#[cfg(feature = "NSObject")]
746extern_conformance!(
747    unsafe impl NSCopying for NSUnitDuration {}
748);
749
750#[cfg(feature = "NSObject")]
751unsafe impl CopyingHelper for NSUnitDuration {
752    type Result = Self;
753}
754
755extern_conformance!(
756    unsafe impl NSObjectProtocol for NSUnitDuration {}
757);
758
759#[cfg(feature = "NSObject")]
760extern_conformance!(
761    unsafe impl NSSecureCoding for NSUnitDuration {}
762);
763
764impl NSUnitDuration {
765    extern_methods!(
766        #[unsafe(method(hours))]
767        #[unsafe(method_family = none)]
768        pub fn hours() -> Retained<NSUnitDuration>;
769
770        #[unsafe(method(minutes))]
771        #[unsafe(method_family = none)]
772        pub fn minutes() -> Retained<NSUnitDuration>;
773
774        #[unsafe(method(seconds))]
775        #[unsafe(method_family = none)]
776        pub fn seconds() -> Retained<NSUnitDuration>;
777
778        #[unsafe(method(milliseconds))]
779        #[unsafe(method_family = none)]
780        pub fn milliseconds() -> Retained<NSUnitDuration>;
781
782        #[unsafe(method(microseconds))]
783        #[unsafe(method_family = none)]
784        pub fn microseconds() -> Retained<NSUnitDuration>;
785
786        #[unsafe(method(nanoseconds))]
787        #[unsafe(method_family = none)]
788        pub fn nanoseconds() -> Retained<NSUnitDuration>;
789
790        #[unsafe(method(picoseconds))]
791        #[unsafe(method_family = none)]
792        pub fn picoseconds() -> Retained<NSUnitDuration>;
793    );
794}
795
796/// Methods declared on superclass `NSDimension`.
797impl NSUnitDuration {
798    extern_methods!(
799        #[cfg(feature = "NSString")]
800        #[unsafe(method(initWithSymbol:converter:))]
801        #[unsafe(method_family = init)]
802        pub fn initWithSymbol_converter(
803            this: Allocated<Self>,
804            symbol: &NSString,
805            converter: &NSUnitConverter,
806        ) -> Retained<Self>;
807
808        #[unsafe(method(baseUnit))]
809        #[unsafe(method_family = none)]
810        pub fn baseUnit() -> Retained<Self>;
811    );
812}
813
814/// Methods declared on superclass `NSUnit`.
815impl NSUnitDuration {
816    extern_methods!(
817        #[unsafe(method(init))]
818        #[unsafe(method_family = init)]
819        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
820
821        #[unsafe(method(new))]
822        #[unsafe(method_family = new)]
823        pub unsafe fn new() -> Retained<Self>;
824
825        #[cfg(feature = "NSString")]
826        #[unsafe(method(initWithSymbol:))]
827        #[unsafe(method_family = init)]
828        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
829    );
830}
831
832extern_class!(
833    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitelectriccharge?language=objc)
834    #[unsafe(super(NSDimension, NSUnit, NSObject))]
835    #[derive(Debug, PartialEq, Eq, Hash)]
836    pub struct NSUnitElectricCharge;
837);
838
839unsafe impl Send for NSUnitElectricCharge {}
840
841unsafe impl Sync for NSUnitElectricCharge {}
842
843#[cfg(feature = "NSObject")]
844extern_conformance!(
845    unsafe impl NSCoding for NSUnitElectricCharge {}
846);
847
848#[cfg(feature = "NSObject")]
849extern_conformance!(
850    unsafe impl NSCopying for NSUnitElectricCharge {}
851);
852
853#[cfg(feature = "NSObject")]
854unsafe impl CopyingHelper for NSUnitElectricCharge {
855    type Result = Self;
856}
857
858extern_conformance!(
859    unsafe impl NSObjectProtocol for NSUnitElectricCharge {}
860);
861
862#[cfg(feature = "NSObject")]
863extern_conformance!(
864    unsafe impl NSSecureCoding for NSUnitElectricCharge {}
865);
866
867impl NSUnitElectricCharge {
868    extern_methods!(
869        #[unsafe(method(coulombs))]
870        #[unsafe(method_family = none)]
871        pub fn coulombs() -> Retained<NSUnitElectricCharge>;
872
873        #[unsafe(method(megaampereHours))]
874        #[unsafe(method_family = none)]
875        pub fn megaampereHours() -> Retained<NSUnitElectricCharge>;
876
877        #[unsafe(method(kiloampereHours))]
878        #[unsafe(method_family = none)]
879        pub fn kiloampereHours() -> Retained<NSUnitElectricCharge>;
880
881        #[unsafe(method(ampereHours))]
882        #[unsafe(method_family = none)]
883        pub fn ampereHours() -> Retained<NSUnitElectricCharge>;
884
885        #[unsafe(method(milliampereHours))]
886        #[unsafe(method_family = none)]
887        pub fn milliampereHours() -> Retained<NSUnitElectricCharge>;
888
889        #[unsafe(method(microampereHours))]
890        #[unsafe(method_family = none)]
891        pub fn microampereHours() -> Retained<NSUnitElectricCharge>;
892    );
893}
894
895/// Methods declared on superclass `NSDimension`.
896impl NSUnitElectricCharge {
897    extern_methods!(
898        #[cfg(feature = "NSString")]
899        #[unsafe(method(initWithSymbol:converter:))]
900        #[unsafe(method_family = init)]
901        pub fn initWithSymbol_converter(
902            this: Allocated<Self>,
903            symbol: &NSString,
904            converter: &NSUnitConverter,
905        ) -> Retained<Self>;
906
907        #[unsafe(method(baseUnit))]
908        #[unsafe(method_family = none)]
909        pub fn baseUnit() -> Retained<Self>;
910    );
911}
912
913/// Methods declared on superclass `NSUnit`.
914impl NSUnitElectricCharge {
915    extern_methods!(
916        #[unsafe(method(init))]
917        #[unsafe(method_family = init)]
918        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
919
920        #[unsafe(method(new))]
921        #[unsafe(method_family = new)]
922        pub unsafe fn new() -> Retained<Self>;
923
924        #[cfg(feature = "NSString")]
925        #[unsafe(method(initWithSymbol:))]
926        #[unsafe(method_family = init)]
927        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
928    );
929}
930
931extern_class!(
932    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitelectriccurrent?language=objc)
933    #[unsafe(super(NSDimension, NSUnit, NSObject))]
934    #[derive(Debug, PartialEq, Eq, Hash)]
935    pub struct NSUnitElectricCurrent;
936);
937
938unsafe impl Send for NSUnitElectricCurrent {}
939
940unsafe impl Sync for NSUnitElectricCurrent {}
941
942#[cfg(feature = "NSObject")]
943extern_conformance!(
944    unsafe impl NSCoding for NSUnitElectricCurrent {}
945);
946
947#[cfg(feature = "NSObject")]
948extern_conformance!(
949    unsafe impl NSCopying for NSUnitElectricCurrent {}
950);
951
952#[cfg(feature = "NSObject")]
953unsafe impl CopyingHelper for NSUnitElectricCurrent {
954    type Result = Self;
955}
956
957extern_conformance!(
958    unsafe impl NSObjectProtocol for NSUnitElectricCurrent {}
959);
960
961#[cfg(feature = "NSObject")]
962extern_conformance!(
963    unsafe impl NSSecureCoding for NSUnitElectricCurrent {}
964);
965
966impl NSUnitElectricCurrent {
967    extern_methods!(
968        #[unsafe(method(megaamperes))]
969        #[unsafe(method_family = none)]
970        pub fn megaamperes() -> Retained<NSUnitElectricCurrent>;
971
972        #[unsafe(method(kiloamperes))]
973        #[unsafe(method_family = none)]
974        pub fn kiloamperes() -> Retained<NSUnitElectricCurrent>;
975
976        #[unsafe(method(amperes))]
977        #[unsafe(method_family = none)]
978        pub fn amperes() -> Retained<NSUnitElectricCurrent>;
979
980        #[unsafe(method(milliamperes))]
981        #[unsafe(method_family = none)]
982        pub fn milliamperes() -> Retained<NSUnitElectricCurrent>;
983
984        #[unsafe(method(microamperes))]
985        #[unsafe(method_family = none)]
986        pub fn microamperes() -> Retained<NSUnitElectricCurrent>;
987    );
988}
989
990/// Methods declared on superclass `NSDimension`.
991impl NSUnitElectricCurrent {
992    extern_methods!(
993        #[cfg(feature = "NSString")]
994        #[unsafe(method(initWithSymbol:converter:))]
995        #[unsafe(method_family = init)]
996        pub fn initWithSymbol_converter(
997            this: Allocated<Self>,
998            symbol: &NSString,
999            converter: &NSUnitConverter,
1000        ) -> Retained<Self>;
1001
1002        #[unsafe(method(baseUnit))]
1003        #[unsafe(method_family = none)]
1004        pub fn baseUnit() -> Retained<Self>;
1005    );
1006}
1007
1008/// Methods declared on superclass `NSUnit`.
1009impl NSUnitElectricCurrent {
1010    extern_methods!(
1011        #[unsafe(method(init))]
1012        #[unsafe(method_family = init)]
1013        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
1014
1015        #[unsafe(method(new))]
1016        #[unsafe(method_family = new)]
1017        pub unsafe fn new() -> Retained<Self>;
1018
1019        #[cfg(feature = "NSString")]
1020        #[unsafe(method(initWithSymbol:))]
1021        #[unsafe(method_family = init)]
1022        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
1023    );
1024}
1025
1026extern_class!(
1027    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitelectricpotentialdifference?language=objc)
1028    #[unsafe(super(NSDimension, NSUnit, NSObject))]
1029    #[derive(Debug, PartialEq, Eq, Hash)]
1030    pub struct NSUnitElectricPotentialDifference;
1031);
1032
1033unsafe impl Send for NSUnitElectricPotentialDifference {}
1034
1035unsafe impl Sync for NSUnitElectricPotentialDifference {}
1036
1037#[cfg(feature = "NSObject")]
1038extern_conformance!(
1039    unsafe impl NSCoding for NSUnitElectricPotentialDifference {}
1040);
1041
1042#[cfg(feature = "NSObject")]
1043extern_conformance!(
1044    unsafe impl NSCopying for NSUnitElectricPotentialDifference {}
1045);
1046
1047#[cfg(feature = "NSObject")]
1048unsafe impl CopyingHelper for NSUnitElectricPotentialDifference {
1049    type Result = Self;
1050}
1051
1052extern_conformance!(
1053    unsafe impl NSObjectProtocol for NSUnitElectricPotentialDifference {}
1054);
1055
1056#[cfg(feature = "NSObject")]
1057extern_conformance!(
1058    unsafe impl NSSecureCoding for NSUnitElectricPotentialDifference {}
1059);
1060
1061impl NSUnitElectricPotentialDifference {
1062    extern_methods!(
1063        #[unsafe(method(megavolts))]
1064        #[unsafe(method_family = none)]
1065        pub fn megavolts() -> Retained<NSUnitElectricPotentialDifference>;
1066
1067        #[unsafe(method(kilovolts))]
1068        #[unsafe(method_family = none)]
1069        pub fn kilovolts() -> Retained<NSUnitElectricPotentialDifference>;
1070
1071        #[unsafe(method(volts))]
1072        #[unsafe(method_family = none)]
1073        pub fn volts() -> Retained<NSUnitElectricPotentialDifference>;
1074
1075        #[unsafe(method(millivolts))]
1076        #[unsafe(method_family = none)]
1077        pub fn millivolts() -> Retained<NSUnitElectricPotentialDifference>;
1078
1079        #[unsafe(method(microvolts))]
1080        #[unsafe(method_family = none)]
1081        pub fn microvolts() -> Retained<NSUnitElectricPotentialDifference>;
1082    );
1083}
1084
1085/// Methods declared on superclass `NSDimension`.
1086impl NSUnitElectricPotentialDifference {
1087    extern_methods!(
1088        #[cfg(feature = "NSString")]
1089        #[unsafe(method(initWithSymbol:converter:))]
1090        #[unsafe(method_family = init)]
1091        pub fn initWithSymbol_converter(
1092            this: Allocated<Self>,
1093            symbol: &NSString,
1094            converter: &NSUnitConverter,
1095        ) -> Retained<Self>;
1096
1097        #[unsafe(method(baseUnit))]
1098        #[unsafe(method_family = none)]
1099        pub fn baseUnit() -> Retained<Self>;
1100    );
1101}
1102
1103/// Methods declared on superclass `NSUnit`.
1104impl NSUnitElectricPotentialDifference {
1105    extern_methods!(
1106        #[unsafe(method(init))]
1107        #[unsafe(method_family = init)]
1108        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
1109
1110        #[unsafe(method(new))]
1111        #[unsafe(method_family = new)]
1112        pub unsafe fn new() -> Retained<Self>;
1113
1114        #[cfg(feature = "NSString")]
1115        #[unsafe(method(initWithSymbol:))]
1116        #[unsafe(method_family = init)]
1117        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
1118    );
1119}
1120
1121extern_class!(
1122    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitelectricresistance?language=objc)
1123    #[unsafe(super(NSDimension, NSUnit, NSObject))]
1124    #[derive(Debug, PartialEq, Eq, Hash)]
1125    pub struct NSUnitElectricResistance;
1126);
1127
1128unsafe impl Send for NSUnitElectricResistance {}
1129
1130unsafe impl Sync for NSUnitElectricResistance {}
1131
1132#[cfg(feature = "NSObject")]
1133extern_conformance!(
1134    unsafe impl NSCoding for NSUnitElectricResistance {}
1135);
1136
1137#[cfg(feature = "NSObject")]
1138extern_conformance!(
1139    unsafe impl NSCopying for NSUnitElectricResistance {}
1140);
1141
1142#[cfg(feature = "NSObject")]
1143unsafe impl CopyingHelper for NSUnitElectricResistance {
1144    type Result = Self;
1145}
1146
1147extern_conformance!(
1148    unsafe impl NSObjectProtocol for NSUnitElectricResistance {}
1149);
1150
1151#[cfg(feature = "NSObject")]
1152extern_conformance!(
1153    unsafe impl NSSecureCoding for NSUnitElectricResistance {}
1154);
1155
1156impl NSUnitElectricResistance {
1157    extern_methods!(
1158        #[unsafe(method(megaohms))]
1159        #[unsafe(method_family = none)]
1160        pub fn megaohms() -> Retained<NSUnitElectricResistance>;
1161
1162        #[unsafe(method(kiloohms))]
1163        #[unsafe(method_family = none)]
1164        pub fn kiloohms() -> Retained<NSUnitElectricResistance>;
1165
1166        #[unsafe(method(ohms))]
1167        #[unsafe(method_family = none)]
1168        pub fn ohms() -> Retained<NSUnitElectricResistance>;
1169
1170        #[unsafe(method(milliohms))]
1171        #[unsafe(method_family = none)]
1172        pub fn milliohms() -> Retained<NSUnitElectricResistance>;
1173
1174        #[unsafe(method(microohms))]
1175        #[unsafe(method_family = none)]
1176        pub fn microohms() -> Retained<NSUnitElectricResistance>;
1177    );
1178}
1179
1180/// Methods declared on superclass `NSDimension`.
1181impl NSUnitElectricResistance {
1182    extern_methods!(
1183        #[cfg(feature = "NSString")]
1184        #[unsafe(method(initWithSymbol:converter:))]
1185        #[unsafe(method_family = init)]
1186        pub fn initWithSymbol_converter(
1187            this: Allocated<Self>,
1188            symbol: &NSString,
1189            converter: &NSUnitConverter,
1190        ) -> Retained<Self>;
1191
1192        #[unsafe(method(baseUnit))]
1193        #[unsafe(method_family = none)]
1194        pub fn baseUnit() -> Retained<Self>;
1195    );
1196}
1197
1198/// Methods declared on superclass `NSUnit`.
1199impl NSUnitElectricResistance {
1200    extern_methods!(
1201        #[unsafe(method(init))]
1202        #[unsafe(method_family = init)]
1203        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
1204
1205        #[unsafe(method(new))]
1206        #[unsafe(method_family = new)]
1207        pub unsafe fn new() -> Retained<Self>;
1208
1209        #[cfg(feature = "NSString")]
1210        #[unsafe(method(initWithSymbol:))]
1211        #[unsafe(method_family = init)]
1212        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
1213    );
1214}
1215
1216extern_class!(
1217    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitenergy?language=objc)
1218    #[unsafe(super(NSDimension, NSUnit, NSObject))]
1219    #[derive(Debug, PartialEq, Eq, Hash)]
1220    pub struct NSUnitEnergy;
1221);
1222
1223unsafe impl Send for NSUnitEnergy {}
1224
1225unsafe impl Sync for NSUnitEnergy {}
1226
1227#[cfg(feature = "NSObject")]
1228extern_conformance!(
1229    unsafe impl NSCoding for NSUnitEnergy {}
1230);
1231
1232#[cfg(feature = "NSObject")]
1233extern_conformance!(
1234    unsafe impl NSCopying for NSUnitEnergy {}
1235);
1236
1237#[cfg(feature = "NSObject")]
1238unsafe impl CopyingHelper for NSUnitEnergy {
1239    type Result = Self;
1240}
1241
1242extern_conformance!(
1243    unsafe impl NSObjectProtocol for NSUnitEnergy {}
1244);
1245
1246#[cfg(feature = "NSObject")]
1247extern_conformance!(
1248    unsafe impl NSSecureCoding for NSUnitEnergy {}
1249);
1250
1251impl NSUnitEnergy {
1252    extern_methods!(
1253        #[unsafe(method(kilojoules))]
1254        #[unsafe(method_family = none)]
1255        pub fn kilojoules() -> Retained<NSUnitEnergy>;
1256
1257        #[unsafe(method(joules))]
1258        #[unsafe(method_family = none)]
1259        pub fn joules() -> Retained<NSUnitEnergy>;
1260
1261        #[unsafe(method(kilocalories))]
1262        #[unsafe(method_family = none)]
1263        pub fn kilocalories() -> Retained<NSUnitEnergy>;
1264
1265        #[unsafe(method(calories))]
1266        #[unsafe(method_family = none)]
1267        pub fn calories() -> Retained<NSUnitEnergy>;
1268
1269        #[unsafe(method(kilowattHours))]
1270        #[unsafe(method_family = none)]
1271        pub fn kilowattHours() -> Retained<NSUnitEnergy>;
1272    );
1273}
1274
1275/// Methods declared on superclass `NSDimension`.
1276impl NSUnitEnergy {
1277    extern_methods!(
1278        #[cfg(feature = "NSString")]
1279        #[unsafe(method(initWithSymbol:converter:))]
1280        #[unsafe(method_family = init)]
1281        pub fn initWithSymbol_converter(
1282            this: Allocated<Self>,
1283            symbol: &NSString,
1284            converter: &NSUnitConverter,
1285        ) -> Retained<Self>;
1286
1287        #[unsafe(method(baseUnit))]
1288        #[unsafe(method_family = none)]
1289        pub fn baseUnit() -> Retained<Self>;
1290    );
1291}
1292
1293/// Methods declared on superclass `NSUnit`.
1294impl NSUnitEnergy {
1295    extern_methods!(
1296        #[unsafe(method(init))]
1297        #[unsafe(method_family = init)]
1298        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
1299
1300        #[unsafe(method(new))]
1301        #[unsafe(method_family = new)]
1302        pub unsafe fn new() -> Retained<Self>;
1303
1304        #[cfg(feature = "NSString")]
1305        #[unsafe(method(initWithSymbol:))]
1306        #[unsafe(method_family = init)]
1307        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
1308    );
1309}
1310
1311extern_class!(
1312    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitfrequency?language=objc)
1313    #[unsafe(super(NSDimension, NSUnit, NSObject))]
1314    #[derive(Debug, PartialEq, Eq, Hash)]
1315    pub struct NSUnitFrequency;
1316);
1317
1318unsafe impl Send for NSUnitFrequency {}
1319
1320unsafe impl Sync for NSUnitFrequency {}
1321
1322#[cfg(feature = "NSObject")]
1323extern_conformance!(
1324    unsafe impl NSCoding for NSUnitFrequency {}
1325);
1326
1327#[cfg(feature = "NSObject")]
1328extern_conformance!(
1329    unsafe impl NSCopying for NSUnitFrequency {}
1330);
1331
1332#[cfg(feature = "NSObject")]
1333unsafe impl CopyingHelper for NSUnitFrequency {
1334    type Result = Self;
1335}
1336
1337extern_conformance!(
1338    unsafe impl NSObjectProtocol for NSUnitFrequency {}
1339);
1340
1341#[cfg(feature = "NSObject")]
1342extern_conformance!(
1343    unsafe impl NSSecureCoding for NSUnitFrequency {}
1344);
1345
1346impl NSUnitFrequency {
1347    extern_methods!(
1348        #[unsafe(method(terahertz))]
1349        #[unsafe(method_family = none)]
1350        pub fn terahertz() -> Retained<NSUnitFrequency>;
1351
1352        #[unsafe(method(gigahertz))]
1353        #[unsafe(method_family = none)]
1354        pub fn gigahertz() -> Retained<NSUnitFrequency>;
1355
1356        #[unsafe(method(megahertz))]
1357        #[unsafe(method_family = none)]
1358        pub fn megahertz() -> Retained<NSUnitFrequency>;
1359
1360        #[unsafe(method(kilohertz))]
1361        #[unsafe(method_family = none)]
1362        pub fn kilohertz() -> Retained<NSUnitFrequency>;
1363
1364        #[unsafe(method(hertz))]
1365        #[unsafe(method_family = none)]
1366        pub fn hertz() -> Retained<NSUnitFrequency>;
1367
1368        #[unsafe(method(millihertz))]
1369        #[unsafe(method_family = none)]
1370        pub fn millihertz() -> Retained<NSUnitFrequency>;
1371
1372        #[unsafe(method(microhertz))]
1373        #[unsafe(method_family = none)]
1374        pub fn microhertz() -> Retained<NSUnitFrequency>;
1375
1376        #[unsafe(method(nanohertz))]
1377        #[unsafe(method_family = none)]
1378        pub fn nanohertz() -> Retained<NSUnitFrequency>;
1379
1380        #[unsafe(method(framesPerSecond))]
1381        #[unsafe(method_family = none)]
1382        pub fn framesPerSecond() -> Retained<NSUnitFrequency>;
1383    );
1384}
1385
1386/// Methods declared on superclass `NSDimension`.
1387impl NSUnitFrequency {
1388    extern_methods!(
1389        #[cfg(feature = "NSString")]
1390        #[unsafe(method(initWithSymbol:converter:))]
1391        #[unsafe(method_family = init)]
1392        pub fn initWithSymbol_converter(
1393            this: Allocated<Self>,
1394            symbol: &NSString,
1395            converter: &NSUnitConverter,
1396        ) -> Retained<Self>;
1397
1398        #[unsafe(method(baseUnit))]
1399        #[unsafe(method_family = none)]
1400        pub fn baseUnit() -> Retained<Self>;
1401    );
1402}
1403
1404/// Methods declared on superclass `NSUnit`.
1405impl NSUnitFrequency {
1406    extern_methods!(
1407        #[unsafe(method(init))]
1408        #[unsafe(method_family = init)]
1409        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
1410
1411        #[unsafe(method(new))]
1412        #[unsafe(method_family = new)]
1413        pub unsafe fn new() -> Retained<Self>;
1414
1415        #[cfg(feature = "NSString")]
1416        #[unsafe(method(initWithSymbol:))]
1417        #[unsafe(method_family = init)]
1418        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
1419    );
1420}
1421
1422extern_class!(
1423    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitfuelefficiency?language=objc)
1424    #[unsafe(super(NSDimension, NSUnit, NSObject))]
1425    #[derive(Debug, PartialEq, Eq, Hash)]
1426    pub struct NSUnitFuelEfficiency;
1427);
1428
1429unsafe impl Send for NSUnitFuelEfficiency {}
1430
1431unsafe impl Sync for NSUnitFuelEfficiency {}
1432
1433#[cfg(feature = "NSObject")]
1434extern_conformance!(
1435    unsafe impl NSCoding for NSUnitFuelEfficiency {}
1436);
1437
1438#[cfg(feature = "NSObject")]
1439extern_conformance!(
1440    unsafe impl NSCopying for NSUnitFuelEfficiency {}
1441);
1442
1443#[cfg(feature = "NSObject")]
1444unsafe impl CopyingHelper for NSUnitFuelEfficiency {
1445    type Result = Self;
1446}
1447
1448extern_conformance!(
1449    unsafe impl NSObjectProtocol for NSUnitFuelEfficiency {}
1450);
1451
1452#[cfg(feature = "NSObject")]
1453extern_conformance!(
1454    unsafe impl NSSecureCoding for NSUnitFuelEfficiency {}
1455);
1456
1457impl NSUnitFuelEfficiency {
1458    extern_methods!(
1459        #[unsafe(method(litersPer100Kilometers))]
1460        #[unsafe(method_family = none)]
1461        pub fn litersPer100Kilometers() -> Retained<NSUnitFuelEfficiency>;
1462
1463        #[unsafe(method(milesPerImperialGallon))]
1464        #[unsafe(method_family = none)]
1465        pub fn milesPerImperialGallon() -> Retained<NSUnitFuelEfficiency>;
1466
1467        #[unsafe(method(milesPerGallon))]
1468        #[unsafe(method_family = none)]
1469        pub fn milesPerGallon() -> Retained<NSUnitFuelEfficiency>;
1470    );
1471}
1472
1473/// Methods declared on superclass `NSDimension`.
1474impl NSUnitFuelEfficiency {
1475    extern_methods!(
1476        #[cfg(feature = "NSString")]
1477        #[unsafe(method(initWithSymbol:converter:))]
1478        #[unsafe(method_family = init)]
1479        pub fn initWithSymbol_converter(
1480            this: Allocated<Self>,
1481            symbol: &NSString,
1482            converter: &NSUnitConverter,
1483        ) -> Retained<Self>;
1484
1485        #[unsafe(method(baseUnit))]
1486        #[unsafe(method_family = none)]
1487        pub fn baseUnit() -> Retained<Self>;
1488    );
1489}
1490
1491/// Methods declared on superclass `NSUnit`.
1492impl NSUnitFuelEfficiency {
1493    extern_methods!(
1494        #[unsafe(method(init))]
1495        #[unsafe(method_family = init)]
1496        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
1497
1498        #[unsafe(method(new))]
1499        #[unsafe(method_family = new)]
1500        pub unsafe fn new() -> Retained<Self>;
1501
1502        #[cfg(feature = "NSString")]
1503        #[unsafe(method(initWithSymbol:))]
1504        #[unsafe(method_family = init)]
1505        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
1506    );
1507}
1508
1509extern_class!(
1510    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitinformationstorage?language=objc)
1511    #[unsafe(super(NSDimension, NSUnit, NSObject))]
1512    #[derive(Debug, PartialEq, Eq, Hash)]
1513    pub struct NSUnitInformationStorage;
1514);
1515
1516unsafe impl Send for NSUnitInformationStorage {}
1517
1518unsafe impl Sync for NSUnitInformationStorage {}
1519
1520#[cfg(feature = "NSObject")]
1521extern_conformance!(
1522    unsafe impl NSCoding for NSUnitInformationStorage {}
1523);
1524
1525#[cfg(feature = "NSObject")]
1526extern_conformance!(
1527    unsafe impl NSCopying for NSUnitInformationStorage {}
1528);
1529
1530#[cfg(feature = "NSObject")]
1531unsafe impl CopyingHelper for NSUnitInformationStorage {
1532    type Result = Self;
1533}
1534
1535extern_conformance!(
1536    unsafe impl NSObjectProtocol for NSUnitInformationStorage {}
1537);
1538
1539#[cfg(feature = "NSObject")]
1540extern_conformance!(
1541    unsafe impl NSSecureCoding for NSUnitInformationStorage {}
1542);
1543
1544impl NSUnitInformationStorage {
1545    extern_methods!(
1546        #[unsafe(method(bytes))]
1547        #[unsafe(method_family = none)]
1548        pub fn bytes() -> Retained<NSUnitInformationStorage>;
1549
1550        #[unsafe(method(bits))]
1551        #[unsafe(method_family = none)]
1552        pub fn bits() -> Retained<NSUnitInformationStorage>;
1553
1554        #[unsafe(method(nibbles))]
1555        #[unsafe(method_family = none)]
1556        pub fn nibbles() -> Retained<NSUnitInformationStorage>;
1557
1558        #[unsafe(method(yottabytes))]
1559        #[unsafe(method_family = none)]
1560        pub fn yottabytes() -> Retained<NSUnitInformationStorage>;
1561
1562        #[unsafe(method(zettabytes))]
1563        #[unsafe(method_family = none)]
1564        pub fn zettabytes() -> Retained<NSUnitInformationStorage>;
1565
1566        #[unsafe(method(exabytes))]
1567        #[unsafe(method_family = none)]
1568        pub fn exabytes() -> Retained<NSUnitInformationStorage>;
1569
1570        #[unsafe(method(petabytes))]
1571        #[unsafe(method_family = none)]
1572        pub fn petabytes() -> Retained<NSUnitInformationStorage>;
1573
1574        #[unsafe(method(terabytes))]
1575        #[unsafe(method_family = none)]
1576        pub fn terabytes() -> Retained<NSUnitInformationStorage>;
1577
1578        #[unsafe(method(gigabytes))]
1579        #[unsafe(method_family = none)]
1580        pub fn gigabytes() -> Retained<NSUnitInformationStorage>;
1581
1582        #[unsafe(method(megabytes))]
1583        #[unsafe(method_family = none)]
1584        pub fn megabytes() -> Retained<NSUnitInformationStorage>;
1585
1586        #[unsafe(method(kilobytes))]
1587        #[unsafe(method_family = none)]
1588        pub fn kilobytes() -> Retained<NSUnitInformationStorage>;
1589
1590        #[unsafe(method(yottabits))]
1591        #[unsafe(method_family = none)]
1592        pub fn yottabits() -> Retained<NSUnitInformationStorage>;
1593
1594        #[unsafe(method(zettabits))]
1595        #[unsafe(method_family = none)]
1596        pub fn zettabits() -> Retained<NSUnitInformationStorage>;
1597
1598        #[unsafe(method(exabits))]
1599        #[unsafe(method_family = none)]
1600        pub fn exabits() -> Retained<NSUnitInformationStorage>;
1601
1602        #[unsafe(method(petabits))]
1603        #[unsafe(method_family = none)]
1604        pub fn petabits() -> Retained<NSUnitInformationStorage>;
1605
1606        #[unsafe(method(terabits))]
1607        #[unsafe(method_family = none)]
1608        pub fn terabits() -> Retained<NSUnitInformationStorage>;
1609
1610        #[unsafe(method(gigabits))]
1611        #[unsafe(method_family = none)]
1612        pub fn gigabits() -> Retained<NSUnitInformationStorage>;
1613
1614        #[unsafe(method(megabits))]
1615        #[unsafe(method_family = none)]
1616        pub fn megabits() -> Retained<NSUnitInformationStorage>;
1617
1618        #[unsafe(method(kilobits))]
1619        #[unsafe(method_family = none)]
1620        pub fn kilobits() -> Retained<NSUnitInformationStorage>;
1621
1622        #[unsafe(method(yobibytes))]
1623        #[unsafe(method_family = none)]
1624        pub fn yobibytes() -> Retained<NSUnitInformationStorage>;
1625
1626        #[unsafe(method(zebibytes))]
1627        #[unsafe(method_family = none)]
1628        pub fn zebibytes() -> Retained<NSUnitInformationStorage>;
1629
1630        #[unsafe(method(exbibytes))]
1631        #[unsafe(method_family = none)]
1632        pub fn exbibytes() -> Retained<NSUnitInformationStorage>;
1633
1634        #[unsafe(method(pebibytes))]
1635        #[unsafe(method_family = none)]
1636        pub fn pebibytes() -> Retained<NSUnitInformationStorage>;
1637
1638        #[unsafe(method(tebibytes))]
1639        #[unsafe(method_family = none)]
1640        pub fn tebibytes() -> Retained<NSUnitInformationStorage>;
1641
1642        #[unsafe(method(gibibytes))]
1643        #[unsafe(method_family = none)]
1644        pub fn gibibytes() -> Retained<NSUnitInformationStorage>;
1645
1646        #[unsafe(method(mebibytes))]
1647        #[unsafe(method_family = none)]
1648        pub fn mebibytes() -> Retained<NSUnitInformationStorage>;
1649
1650        #[unsafe(method(kibibytes))]
1651        #[unsafe(method_family = none)]
1652        pub fn kibibytes() -> Retained<NSUnitInformationStorage>;
1653
1654        #[unsafe(method(yobibits))]
1655        #[unsafe(method_family = none)]
1656        pub fn yobibits() -> Retained<NSUnitInformationStorage>;
1657
1658        #[unsafe(method(zebibits))]
1659        #[unsafe(method_family = none)]
1660        pub fn zebibits() -> Retained<NSUnitInformationStorage>;
1661
1662        #[unsafe(method(exbibits))]
1663        #[unsafe(method_family = none)]
1664        pub fn exbibits() -> Retained<NSUnitInformationStorage>;
1665
1666        #[unsafe(method(pebibits))]
1667        #[unsafe(method_family = none)]
1668        pub fn pebibits() -> Retained<NSUnitInformationStorage>;
1669
1670        #[unsafe(method(tebibits))]
1671        #[unsafe(method_family = none)]
1672        pub fn tebibits() -> Retained<NSUnitInformationStorage>;
1673
1674        #[unsafe(method(gibibits))]
1675        #[unsafe(method_family = none)]
1676        pub fn gibibits() -> Retained<NSUnitInformationStorage>;
1677
1678        #[unsafe(method(mebibits))]
1679        #[unsafe(method_family = none)]
1680        pub fn mebibits() -> Retained<NSUnitInformationStorage>;
1681
1682        #[unsafe(method(kibibits))]
1683        #[unsafe(method_family = none)]
1684        pub fn kibibits() -> Retained<NSUnitInformationStorage>;
1685    );
1686}
1687
1688/// Methods declared on superclass `NSDimension`.
1689impl NSUnitInformationStorage {
1690    extern_methods!(
1691        #[cfg(feature = "NSString")]
1692        #[unsafe(method(initWithSymbol:converter:))]
1693        #[unsafe(method_family = init)]
1694        pub fn initWithSymbol_converter(
1695            this: Allocated<Self>,
1696            symbol: &NSString,
1697            converter: &NSUnitConverter,
1698        ) -> Retained<Self>;
1699
1700        #[unsafe(method(baseUnit))]
1701        #[unsafe(method_family = none)]
1702        pub fn baseUnit() -> Retained<Self>;
1703    );
1704}
1705
1706/// Methods declared on superclass `NSUnit`.
1707impl NSUnitInformationStorage {
1708    extern_methods!(
1709        #[unsafe(method(init))]
1710        #[unsafe(method_family = init)]
1711        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
1712
1713        #[unsafe(method(new))]
1714        #[unsafe(method_family = new)]
1715        pub unsafe fn new() -> Retained<Self>;
1716
1717        #[cfg(feature = "NSString")]
1718        #[unsafe(method(initWithSymbol:))]
1719        #[unsafe(method_family = init)]
1720        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
1721    );
1722}
1723
1724extern_class!(
1725    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitlength?language=objc)
1726    #[unsafe(super(NSDimension, NSUnit, NSObject))]
1727    #[derive(Debug, PartialEq, Eq, Hash)]
1728    pub struct NSUnitLength;
1729);
1730
1731unsafe impl Send for NSUnitLength {}
1732
1733unsafe impl Sync for NSUnitLength {}
1734
1735#[cfg(feature = "NSObject")]
1736extern_conformance!(
1737    unsafe impl NSCoding for NSUnitLength {}
1738);
1739
1740#[cfg(feature = "NSObject")]
1741extern_conformance!(
1742    unsafe impl NSCopying for NSUnitLength {}
1743);
1744
1745#[cfg(feature = "NSObject")]
1746unsafe impl CopyingHelper for NSUnitLength {
1747    type Result = Self;
1748}
1749
1750extern_conformance!(
1751    unsafe impl NSObjectProtocol for NSUnitLength {}
1752);
1753
1754#[cfg(feature = "NSObject")]
1755extern_conformance!(
1756    unsafe impl NSSecureCoding for NSUnitLength {}
1757);
1758
1759impl NSUnitLength {
1760    extern_methods!(
1761        #[unsafe(method(megameters))]
1762        #[unsafe(method_family = none)]
1763        pub fn megameters() -> Retained<NSUnitLength>;
1764
1765        #[unsafe(method(kilometers))]
1766        #[unsafe(method_family = none)]
1767        pub fn kilometers() -> Retained<NSUnitLength>;
1768
1769        #[unsafe(method(hectometers))]
1770        #[unsafe(method_family = none)]
1771        pub fn hectometers() -> Retained<NSUnitLength>;
1772
1773        #[unsafe(method(decameters))]
1774        #[unsafe(method_family = none)]
1775        pub fn decameters() -> Retained<NSUnitLength>;
1776
1777        #[unsafe(method(meters))]
1778        #[unsafe(method_family = none)]
1779        pub fn meters() -> Retained<NSUnitLength>;
1780
1781        #[unsafe(method(decimeters))]
1782        #[unsafe(method_family = none)]
1783        pub fn decimeters() -> Retained<NSUnitLength>;
1784
1785        #[unsafe(method(centimeters))]
1786        #[unsafe(method_family = none)]
1787        pub fn centimeters() -> Retained<NSUnitLength>;
1788
1789        #[unsafe(method(millimeters))]
1790        #[unsafe(method_family = none)]
1791        pub fn millimeters() -> Retained<NSUnitLength>;
1792
1793        #[unsafe(method(micrometers))]
1794        #[unsafe(method_family = none)]
1795        pub fn micrometers() -> Retained<NSUnitLength>;
1796
1797        #[unsafe(method(nanometers))]
1798        #[unsafe(method_family = none)]
1799        pub fn nanometers() -> Retained<NSUnitLength>;
1800
1801        #[unsafe(method(picometers))]
1802        #[unsafe(method_family = none)]
1803        pub fn picometers() -> Retained<NSUnitLength>;
1804
1805        #[unsafe(method(inches))]
1806        #[unsafe(method_family = none)]
1807        pub fn inches() -> Retained<NSUnitLength>;
1808
1809        #[unsafe(method(feet))]
1810        #[unsafe(method_family = none)]
1811        pub fn feet() -> Retained<NSUnitLength>;
1812
1813        #[unsafe(method(yards))]
1814        #[unsafe(method_family = none)]
1815        pub fn yards() -> Retained<NSUnitLength>;
1816
1817        #[unsafe(method(miles))]
1818        #[unsafe(method_family = none)]
1819        pub fn miles() -> Retained<NSUnitLength>;
1820
1821        #[unsafe(method(scandinavianMiles))]
1822        #[unsafe(method_family = none)]
1823        pub fn scandinavianMiles() -> Retained<NSUnitLength>;
1824
1825        #[unsafe(method(lightyears))]
1826        #[unsafe(method_family = none)]
1827        pub fn lightyears() -> Retained<NSUnitLength>;
1828
1829        #[unsafe(method(nauticalMiles))]
1830        #[unsafe(method_family = none)]
1831        pub fn nauticalMiles() -> Retained<NSUnitLength>;
1832
1833        #[unsafe(method(fathoms))]
1834        #[unsafe(method_family = none)]
1835        pub fn fathoms() -> Retained<NSUnitLength>;
1836
1837        #[unsafe(method(furlongs))]
1838        #[unsafe(method_family = none)]
1839        pub fn furlongs() -> Retained<NSUnitLength>;
1840
1841        #[unsafe(method(astronomicalUnits))]
1842        #[unsafe(method_family = none)]
1843        pub fn astronomicalUnits() -> Retained<NSUnitLength>;
1844
1845        #[unsafe(method(parsecs))]
1846        #[unsafe(method_family = none)]
1847        pub fn parsecs() -> Retained<NSUnitLength>;
1848    );
1849}
1850
1851/// Methods declared on superclass `NSDimension`.
1852impl NSUnitLength {
1853    extern_methods!(
1854        #[cfg(feature = "NSString")]
1855        #[unsafe(method(initWithSymbol:converter:))]
1856        #[unsafe(method_family = init)]
1857        pub fn initWithSymbol_converter(
1858            this: Allocated<Self>,
1859            symbol: &NSString,
1860            converter: &NSUnitConverter,
1861        ) -> Retained<Self>;
1862
1863        #[unsafe(method(baseUnit))]
1864        #[unsafe(method_family = none)]
1865        pub fn baseUnit() -> Retained<Self>;
1866    );
1867}
1868
1869/// Methods declared on superclass `NSUnit`.
1870impl NSUnitLength {
1871    extern_methods!(
1872        #[unsafe(method(init))]
1873        #[unsafe(method_family = init)]
1874        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
1875
1876        #[unsafe(method(new))]
1877        #[unsafe(method_family = new)]
1878        pub unsafe fn new() -> Retained<Self>;
1879
1880        #[cfg(feature = "NSString")]
1881        #[unsafe(method(initWithSymbol:))]
1882        #[unsafe(method_family = init)]
1883        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
1884    );
1885}
1886
1887extern_class!(
1888    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitilluminance?language=objc)
1889    #[unsafe(super(NSDimension, NSUnit, NSObject))]
1890    #[derive(Debug, PartialEq, Eq, Hash)]
1891    pub struct NSUnitIlluminance;
1892);
1893
1894unsafe impl Send for NSUnitIlluminance {}
1895
1896unsafe impl Sync for NSUnitIlluminance {}
1897
1898#[cfg(feature = "NSObject")]
1899extern_conformance!(
1900    unsafe impl NSCoding for NSUnitIlluminance {}
1901);
1902
1903#[cfg(feature = "NSObject")]
1904extern_conformance!(
1905    unsafe impl NSCopying for NSUnitIlluminance {}
1906);
1907
1908#[cfg(feature = "NSObject")]
1909unsafe impl CopyingHelper for NSUnitIlluminance {
1910    type Result = Self;
1911}
1912
1913extern_conformance!(
1914    unsafe impl NSObjectProtocol for NSUnitIlluminance {}
1915);
1916
1917#[cfg(feature = "NSObject")]
1918extern_conformance!(
1919    unsafe impl NSSecureCoding for NSUnitIlluminance {}
1920);
1921
1922impl NSUnitIlluminance {
1923    extern_methods!(
1924        #[unsafe(method(lux))]
1925        #[unsafe(method_family = none)]
1926        pub fn lux() -> Retained<NSUnitIlluminance>;
1927    );
1928}
1929
1930/// Methods declared on superclass `NSDimension`.
1931impl NSUnitIlluminance {
1932    extern_methods!(
1933        #[cfg(feature = "NSString")]
1934        #[unsafe(method(initWithSymbol:converter:))]
1935        #[unsafe(method_family = init)]
1936        pub fn initWithSymbol_converter(
1937            this: Allocated<Self>,
1938            symbol: &NSString,
1939            converter: &NSUnitConverter,
1940        ) -> Retained<Self>;
1941
1942        #[unsafe(method(baseUnit))]
1943        #[unsafe(method_family = none)]
1944        pub fn baseUnit() -> Retained<Self>;
1945    );
1946}
1947
1948/// Methods declared on superclass `NSUnit`.
1949impl NSUnitIlluminance {
1950    extern_methods!(
1951        #[unsafe(method(init))]
1952        #[unsafe(method_family = init)]
1953        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
1954
1955        #[unsafe(method(new))]
1956        #[unsafe(method_family = new)]
1957        pub unsafe fn new() -> Retained<Self>;
1958
1959        #[cfg(feature = "NSString")]
1960        #[unsafe(method(initWithSymbol:))]
1961        #[unsafe(method_family = init)]
1962        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
1963    );
1964}
1965
1966extern_class!(
1967    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitmass?language=objc)
1968    #[unsafe(super(NSDimension, NSUnit, NSObject))]
1969    #[derive(Debug, PartialEq, Eq, Hash)]
1970    pub struct NSUnitMass;
1971);
1972
1973unsafe impl Send for NSUnitMass {}
1974
1975unsafe impl Sync for NSUnitMass {}
1976
1977#[cfg(feature = "NSObject")]
1978extern_conformance!(
1979    unsafe impl NSCoding for NSUnitMass {}
1980);
1981
1982#[cfg(feature = "NSObject")]
1983extern_conformance!(
1984    unsafe impl NSCopying for NSUnitMass {}
1985);
1986
1987#[cfg(feature = "NSObject")]
1988unsafe impl CopyingHelper for NSUnitMass {
1989    type Result = Self;
1990}
1991
1992extern_conformance!(
1993    unsafe impl NSObjectProtocol for NSUnitMass {}
1994);
1995
1996#[cfg(feature = "NSObject")]
1997extern_conformance!(
1998    unsafe impl NSSecureCoding for NSUnitMass {}
1999);
2000
2001impl NSUnitMass {
2002    extern_methods!(
2003        #[unsafe(method(kilograms))]
2004        #[unsafe(method_family = none)]
2005        pub fn kilograms() -> Retained<NSUnitMass>;
2006
2007        #[unsafe(method(grams))]
2008        #[unsafe(method_family = none)]
2009        pub fn grams() -> Retained<NSUnitMass>;
2010
2011        #[unsafe(method(decigrams))]
2012        #[unsafe(method_family = none)]
2013        pub fn decigrams() -> Retained<NSUnitMass>;
2014
2015        #[unsafe(method(centigrams))]
2016        #[unsafe(method_family = none)]
2017        pub fn centigrams() -> Retained<NSUnitMass>;
2018
2019        #[unsafe(method(milligrams))]
2020        #[unsafe(method_family = none)]
2021        pub fn milligrams() -> Retained<NSUnitMass>;
2022
2023        #[unsafe(method(micrograms))]
2024        #[unsafe(method_family = none)]
2025        pub fn micrograms() -> Retained<NSUnitMass>;
2026
2027        #[unsafe(method(nanograms))]
2028        #[unsafe(method_family = none)]
2029        pub fn nanograms() -> Retained<NSUnitMass>;
2030
2031        #[unsafe(method(picograms))]
2032        #[unsafe(method_family = none)]
2033        pub fn picograms() -> Retained<NSUnitMass>;
2034
2035        #[unsafe(method(ounces))]
2036        #[unsafe(method_family = none)]
2037        pub fn ounces() -> Retained<NSUnitMass>;
2038
2039        #[unsafe(method(poundsMass))]
2040        #[unsafe(method_family = none)]
2041        pub fn poundsMass() -> Retained<NSUnitMass>;
2042
2043        #[unsafe(method(stones))]
2044        #[unsafe(method_family = none)]
2045        pub fn stones() -> Retained<NSUnitMass>;
2046
2047        #[unsafe(method(metricTons))]
2048        #[unsafe(method_family = none)]
2049        pub fn metricTons() -> Retained<NSUnitMass>;
2050
2051        #[unsafe(method(shortTons))]
2052        #[unsafe(method_family = none)]
2053        pub fn shortTons() -> Retained<NSUnitMass>;
2054
2055        #[unsafe(method(carats))]
2056        #[unsafe(method_family = none)]
2057        pub fn carats() -> Retained<NSUnitMass>;
2058
2059        #[unsafe(method(ouncesTroy))]
2060        #[unsafe(method_family = none)]
2061        pub fn ouncesTroy() -> Retained<NSUnitMass>;
2062
2063        #[unsafe(method(slugs))]
2064        #[unsafe(method_family = none)]
2065        pub fn slugs() -> Retained<NSUnitMass>;
2066    );
2067}
2068
2069/// Methods declared on superclass `NSDimension`.
2070impl NSUnitMass {
2071    extern_methods!(
2072        #[cfg(feature = "NSString")]
2073        #[unsafe(method(initWithSymbol:converter:))]
2074        #[unsafe(method_family = init)]
2075        pub fn initWithSymbol_converter(
2076            this: Allocated<Self>,
2077            symbol: &NSString,
2078            converter: &NSUnitConverter,
2079        ) -> Retained<Self>;
2080
2081        #[unsafe(method(baseUnit))]
2082        #[unsafe(method_family = none)]
2083        pub fn baseUnit() -> Retained<Self>;
2084    );
2085}
2086
2087/// Methods declared on superclass `NSUnit`.
2088impl NSUnitMass {
2089    extern_methods!(
2090        #[unsafe(method(init))]
2091        #[unsafe(method_family = init)]
2092        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
2093
2094        #[unsafe(method(new))]
2095        #[unsafe(method_family = new)]
2096        pub unsafe fn new() -> Retained<Self>;
2097
2098        #[cfg(feature = "NSString")]
2099        #[unsafe(method(initWithSymbol:))]
2100        #[unsafe(method_family = init)]
2101        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
2102    );
2103}
2104
2105extern_class!(
2106    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitpower?language=objc)
2107    #[unsafe(super(NSDimension, NSUnit, NSObject))]
2108    #[derive(Debug, PartialEq, Eq, Hash)]
2109    pub struct NSUnitPower;
2110);
2111
2112unsafe impl Send for NSUnitPower {}
2113
2114unsafe impl Sync for NSUnitPower {}
2115
2116#[cfg(feature = "NSObject")]
2117extern_conformance!(
2118    unsafe impl NSCoding for NSUnitPower {}
2119);
2120
2121#[cfg(feature = "NSObject")]
2122extern_conformance!(
2123    unsafe impl NSCopying for NSUnitPower {}
2124);
2125
2126#[cfg(feature = "NSObject")]
2127unsafe impl CopyingHelper for NSUnitPower {
2128    type Result = Self;
2129}
2130
2131extern_conformance!(
2132    unsafe impl NSObjectProtocol for NSUnitPower {}
2133);
2134
2135#[cfg(feature = "NSObject")]
2136extern_conformance!(
2137    unsafe impl NSSecureCoding for NSUnitPower {}
2138);
2139
2140impl NSUnitPower {
2141    extern_methods!(
2142        #[unsafe(method(terawatts))]
2143        #[unsafe(method_family = none)]
2144        pub fn terawatts() -> Retained<NSUnitPower>;
2145
2146        #[unsafe(method(gigawatts))]
2147        #[unsafe(method_family = none)]
2148        pub fn gigawatts() -> Retained<NSUnitPower>;
2149
2150        #[unsafe(method(megawatts))]
2151        #[unsafe(method_family = none)]
2152        pub fn megawatts() -> Retained<NSUnitPower>;
2153
2154        #[unsafe(method(kilowatts))]
2155        #[unsafe(method_family = none)]
2156        pub fn kilowatts() -> Retained<NSUnitPower>;
2157
2158        #[unsafe(method(watts))]
2159        #[unsafe(method_family = none)]
2160        pub fn watts() -> Retained<NSUnitPower>;
2161
2162        #[unsafe(method(milliwatts))]
2163        #[unsafe(method_family = none)]
2164        pub fn milliwatts() -> Retained<NSUnitPower>;
2165
2166        #[unsafe(method(microwatts))]
2167        #[unsafe(method_family = none)]
2168        pub fn microwatts() -> Retained<NSUnitPower>;
2169
2170        #[unsafe(method(nanowatts))]
2171        #[unsafe(method_family = none)]
2172        pub fn nanowatts() -> Retained<NSUnitPower>;
2173
2174        #[unsafe(method(picowatts))]
2175        #[unsafe(method_family = none)]
2176        pub fn picowatts() -> Retained<NSUnitPower>;
2177
2178        #[unsafe(method(femtowatts))]
2179        #[unsafe(method_family = none)]
2180        pub fn femtowatts() -> Retained<NSUnitPower>;
2181
2182        #[unsafe(method(horsepower))]
2183        #[unsafe(method_family = none)]
2184        pub fn horsepower() -> Retained<NSUnitPower>;
2185    );
2186}
2187
2188/// Methods declared on superclass `NSDimension`.
2189impl NSUnitPower {
2190    extern_methods!(
2191        #[cfg(feature = "NSString")]
2192        #[unsafe(method(initWithSymbol:converter:))]
2193        #[unsafe(method_family = init)]
2194        pub fn initWithSymbol_converter(
2195            this: Allocated<Self>,
2196            symbol: &NSString,
2197            converter: &NSUnitConverter,
2198        ) -> Retained<Self>;
2199
2200        #[unsafe(method(baseUnit))]
2201        #[unsafe(method_family = none)]
2202        pub fn baseUnit() -> Retained<Self>;
2203    );
2204}
2205
2206/// Methods declared on superclass `NSUnit`.
2207impl NSUnitPower {
2208    extern_methods!(
2209        #[unsafe(method(init))]
2210        #[unsafe(method_family = init)]
2211        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
2212
2213        #[unsafe(method(new))]
2214        #[unsafe(method_family = new)]
2215        pub unsafe fn new() -> Retained<Self>;
2216
2217        #[cfg(feature = "NSString")]
2218        #[unsafe(method(initWithSymbol:))]
2219        #[unsafe(method_family = init)]
2220        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
2221    );
2222}
2223
2224extern_class!(
2225    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitpressure?language=objc)
2226    #[unsafe(super(NSDimension, NSUnit, NSObject))]
2227    #[derive(Debug, PartialEq, Eq, Hash)]
2228    pub struct NSUnitPressure;
2229);
2230
2231unsafe impl Send for NSUnitPressure {}
2232
2233unsafe impl Sync for NSUnitPressure {}
2234
2235#[cfg(feature = "NSObject")]
2236extern_conformance!(
2237    unsafe impl NSCoding for NSUnitPressure {}
2238);
2239
2240#[cfg(feature = "NSObject")]
2241extern_conformance!(
2242    unsafe impl NSCopying for NSUnitPressure {}
2243);
2244
2245#[cfg(feature = "NSObject")]
2246unsafe impl CopyingHelper for NSUnitPressure {
2247    type Result = Self;
2248}
2249
2250extern_conformance!(
2251    unsafe impl NSObjectProtocol for NSUnitPressure {}
2252);
2253
2254#[cfg(feature = "NSObject")]
2255extern_conformance!(
2256    unsafe impl NSSecureCoding for NSUnitPressure {}
2257);
2258
2259impl NSUnitPressure {
2260    extern_methods!(
2261        #[unsafe(method(newtonsPerMetersSquared))]
2262        #[unsafe(method_family = none)]
2263        pub fn newtonsPerMetersSquared() -> Retained<NSUnitPressure>;
2264
2265        #[unsafe(method(gigapascals))]
2266        #[unsafe(method_family = none)]
2267        pub fn gigapascals() -> Retained<NSUnitPressure>;
2268
2269        #[unsafe(method(megapascals))]
2270        #[unsafe(method_family = none)]
2271        pub fn megapascals() -> Retained<NSUnitPressure>;
2272
2273        #[unsafe(method(kilopascals))]
2274        #[unsafe(method_family = none)]
2275        pub fn kilopascals() -> Retained<NSUnitPressure>;
2276
2277        #[unsafe(method(hectopascals))]
2278        #[unsafe(method_family = none)]
2279        pub fn hectopascals() -> Retained<NSUnitPressure>;
2280
2281        #[unsafe(method(inchesOfMercury))]
2282        #[unsafe(method_family = none)]
2283        pub fn inchesOfMercury() -> Retained<NSUnitPressure>;
2284
2285        #[unsafe(method(bars))]
2286        #[unsafe(method_family = none)]
2287        pub fn bars() -> Retained<NSUnitPressure>;
2288
2289        #[unsafe(method(millibars))]
2290        #[unsafe(method_family = none)]
2291        pub fn millibars() -> Retained<NSUnitPressure>;
2292
2293        #[unsafe(method(millimetersOfMercury))]
2294        #[unsafe(method_family = none)]
2295        pub fn millimetersOfMercury() -> Retained<NSUnitPressure>;
2296
2297        #[unsafe(method(poundsForcePerSquareInch))]
2298        #[unsafe(method_family = none)]
2299        pub fn poundsForcePerSquareInch() -> Retained<NSUnitPressure>;
2300    );
2301}
2302
2303/// Methods declared on superclass `NSDimension`.
2304impl NSUnitPressure {
2305    extern_methods!(
2306        #[cfg(feature = "NSString")]
2307        #[unsafe(method(initWithSymbol:converter:))]
2308        #[unsafe(method_family = init)]
2309        pub fn initWithSymbol_converter(
2310            this: Allocated<Self>,
2311            symbol: &NSString,
2312            converter: &NSUnitConverter,
2313        ) -> Retained<Self>;
2314
2315        #[unsafe(method(baseUnit))]
2316        #[unsafe(method_family = none)]
2317        pub fn baseUnit() -> Retained<Self>;
2318    );
2319}
2320
2321/// Methods declared on superclass `NSUnit`.
2322impl NSUnitPressure {
2323    extern_methods!(
2324        #[unsafe(method(init))]
2325        #[unsafe(method_family = init)]
2326        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
2327
2328        #[unsafe(method(new))]
2329        #[unsafe(method_family = new)]
2330        pub unsafe fn new() -> Retained<Self>;
2331
2332        #[cfg(feature = "NSString")]
2333        #[unsafe(method(initWithSymbol:))]
2334        #[unsafe(method_family = init)]
2335        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
2336    );
2337}
2338
2339extern_class!(
2340    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitspeed?language=objc)
2341    #[unsafe(super(NSDimension, NSUnit, NSObject))]
2342    #[derive(Debug, PartialEq, Eq, Hash)]
2343    pub struct NSUnitSpeed;
2344);
2345
2346unsafe impl Send for NSUnitSpeed {}
2347
2348unsafe impl Sync for NSUnitSpeed {}
2349
2350#[cfg(feature = "NSObject")]
2351extern_conformance!(
2352    unsafe impl NSCoding for NSUnitSpeed {}
2353);
2354
2355#[cfg(feature = "NSObject")]
2356extern_conformance!(
2357    unsafe impl NSCopying for NSUnitSpeed {}
2358);
2359
2360#[cfg(feature = "NSObject")]
2361unsafe impl CopyingHelper for NSUnitSpeed {
2362    type Result = Self;
2363}
2364
2365extern_conformance!(
2366    unsafe impl NSObjectProtocol for NSUnitSpeed {}
2367);
2368
2369#[cfg(feature = "NSObject")]
2370extern_conformance!(
2371    unsafe impl NSSecureCoding for NSUnitSpeed {}
2372);
2373
2374impl NSUnitSpeed {
2375    extern_methods!(
2376        #[unsafe(method(metersPerSecond))]
2377        #[unsafe(method_family = none)]
2378        pub fn metersPerSecond() -> Retained<NSUnitSpeed>;
2379
2380        #[unsafe(method(kilometersPerHour))]
2381        #[unsafe(method_family = none)]
2382        pub fn kilometersPerHour() -> Retained<NSUnitSpeed>;
2383
2384        #[unsafe(method(milesPerHour))]
2385        #[unsafe(method_family = none)]
2386        pub fn milesPerHour() -> Retained<NSUnitSpeed>;
2387
2388        #[unsafe(method(knots))]
2389        #[unsafe(method_family = none)]
2390        pub fn knots() -> Retained<NSUnitSpeed>;
2391    );
2392}
2393
2394/// Methods declared on superclass `NSDimension`.
2395impl NSUnitSpeed {
2396    extern_methods!(
2397        #[cfg(feature = "NSString")]
2398        #[unsafe(method(initWithSymbol:converter:))]
2399        #[unsafe(method_family = init)]
2400        pub fn initWithSymbol_converter(
2401            this: Allocated<Self>,
2402            symbol: &NSString,
2403            converter: &NSUnitConverter,
2404        ) -> Retained<Self>;
2405
2406        #[unsafe(method(baseUnit))]
2407        #[unsafe(method_family = none)]
2408        pub fn baseUnit() -> Retained<Self>;
2409    );
2410}
2411
2412/// Methods declared on superclass `NSUnit`.
2413impl NSUnitSpeed {
2414    extern_methods!(
2415        #[unsafe(method(init))]
2416        #[unsafe(method_family = init)]
2417        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
2418
2419        #[unsafe(method(new))]
2420        #[unsafe(method_family = new)]
2421        pub unsafe fn new() -> Retained<Self>;
2422
2423        #[cfg(feature = "NSString")]
2424        #[unsafe(method(initWithSymbol:))]
2425        #[unsafe(method_family = init)]
2426        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
2427    );
2428}
2429
2430extern_class!(
2431    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunittemperature?language=objc)
2432    #[unsafe(super(NSDimension, NSUnit, NSObject))]
2433    #[derive(Debug, PartialEq, Eq, Hash)]
2434    pub struct NSUnitTemperature;
2435);
2436
2437unsafe impl Send for NSUnitTemperature {}
2438
2439unsafe impl Sync for NSUnitTemperature {}
2440
2441#[cfg(feature = "NSObject")]
2442extern_conformance!(
2443    unsafe impl NSCoding for NSUnitTemperature {}
2444);
2445
2446#[cfg(feature = "NSObject")]
2447extern_conformance!(
2448    unsafe impl NSCopying for NSUnitTemperature {}
2449);
2450
2451#[cfg(feature = "NSObject")]
2452unsafe impl CopyingHelper for NSUnitTemperature {
2453    type Result = Self;
2454}
2455
2456extern_conformance!(
2457    unsafe impl NSObjectProtocol for NSUnitTemperature {}
2458);
2459
2460#[cfg(feature = "NSObject")]
2461extern_conformance!(
2462    unsafe impl NSSecureCoding for NSUnitTemperature {}
2463);
2464
2465impl NSUnitTemperature {
2466    extern_methods!(
2467        #[unsafe(method(kelvin))]
2468        #[unsafe(method_family = none)]
2469        pub fn kelvin() -> Retained<NSUnitTemperature>;
2470
2471        #[unsafe(method(celsius))]
2472        #[unsafe(method_family = none)]
2473        pub fn celsius() -> Retained<NSUnitTemperature>;
2474
2475        #[unsafe(method(fahrenheit))]
2476        #[unsafe(method_family = none)]
2477        pub fn fahrenheit() -> Retained<NSUnitTemperature>;
2478    );
2479}
2480
2481/// Methods declared on superclass `NSDimension`.
2482impl NSUnitTemperature {
2483    extern_methods!(
2484        #[cfg(feature = "NSString")]
2485        #[unsafe(method(initWithSymbol:converter:))]
2486        #[unsafe(method_family = init)]
2487        pub fn initWithSymbol_converter(
2488            this: Allocated<Self>,
2489            symbol: &NSString,
2490            converter: &NSUnitConverter,
2491        ) -> Retained<Self>;
2492
2493        #[unsafe(method(baseUnit))]
2494        #[unsafe(method_family = none)]
2495        pub fn baseUnit() -> Retained<Self>;
2496    );
2497}
2498
2499/// Methods declared on superclass `NSUnit`.
2500impl NSUnitTemperature {
2501    extern_methods!(
2502        #[unsafe(method(init))]
2503        #[unsafe(method_family = init)]
2504        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
2505
2506        #[unsafe(method(new))]
2507        #[unsafe(method_family = new)]
2508        pub unsafe fn new() -> Retained<Self>;
2509
2510        #[cfg(feature = "NSString")]
2511        #[unsafe(method(initWithSymbol:))]
2512        #[unsafe(method_family = init)]
2513        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
2514    );
2515}
2516
2517extern_class!(
2518    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsunitvolume?language=objc)
2519    #[unsafe(super(NSDimension, NSUnit, NSObject))]
2520    #[derive(Debug, PartialEq, Eq, Hash)]
2521    pub struct NSUnitVolume;
2522);
2523
2524unsafe impl Send for NSUnitVolume {}
2525
2526unsafe impl Sync for NSUnitVolume {}
2527
2528#[cfg(feature = "NSObject")]
2529extern_conformance!(
2530    unsafe impl NSCoding for NSUnitVolume {}
2531);
2532
2533#[cfg(feature = "NSObject")]
2534extern_conformance!(
2535    unsafe impl NSCopying for NSUnitVolume {}
2536);
2537
2538#[cfg(feature = "NSObject")]
2539unsafe impl CopyingHelper for NSUnitVolume {
2540    type Result = Self;
2541}
2542
2543extern_conformance!(
2544    unsafe impl NSObjectProtocol for NSUnitVolume {}
2545);
2546
2547#[cfg(feature = "NSObject")]
2548extern_conformance!(
2549    unsafe impl NSSecureCoding for NSUnitVolume {}
2550);
2551
2552impl NSUnitVolume {
2553    extern_methods!(
2554        #[unsafe(method(megaliters))]
2555        #[unsafe(method_family = none)]
2556        pub fn megaliters() -> Retained<NSUnitVolume>;
2557
2558        #[unsafe(method(kiloliters))]
2559        #[unsafe(method_family = none)]
2560        pub fn kiloliters() -> Retained<NSUnitVolume>;
2561
2562        #[unsafe(method(liters))]
2563        #[unsafe(method_family = none)]
2564        pub fn liters() -> Retained<NSUnitVolume>;
2565
2566        #[unsafe(method(deciliters))]
2567        #[unsafe(method_family = none)]
2568        pub fn deciliters() -> Retained<NSUnitVolume>;
2569
2570        #[unsafe(method(centiliters))]
2571        #[unsafe(method_family = none)]
2572        pub fn centiliters() -> Retained<NSUnitVolume>;
2573
2574        #[unsafe(method(milliliters))]
2575        #[unsafe(method_family = none)]
2576        pub fn milliliters() -> Retained<NSUnitVolume>;
2577
2578        #[unsafe(method(cubicKilometers))]
2579        #[unsafe(method_family = none)]
2580        pub fn cubicKilometers() -> Retained<NSUnitVolume>;
2581
2582        #[unsafe(method(cubicMeters))]
2583        #[unsafe(method_family = none)]
2584        pub fn cubicMeters() -> Retained<NSUnitVolume>;
2585
2586        #[unsafe(method(cubicDecimeters))]
2587        #[unsafe(method_family = none)]
2588        pub fn cubicDecimeters() -> Retained<NSUnitVolume>;
2589
2590        #[unsafe(method(cubicCentimeters))]
2591        #[unsafe(method_family = none)]
2592        pub fn cubicCentimeters() -> Retained<NSUnitVolume>;
2593
2594        #[unsafe(method(cubicMillimeters))]
2595        #[unsafe(method_family = none)]
2596        pub fn cubicMillimeters() -> Retained<NSUnitVolume>;
2597
2598        #[unsafe(method(cubicInches))]
2599        #[unsafe(method_family = none)]
2600        pub fn cubicInches() -> Retained<NSUnitVolume>;
2601
2602        #[unsafe(method(cubicFeet))]
2603        #[unsafe(method_family = none)]
2604        pub fn cubicFeet() -> Retained<NSUnitVolume>;
2605
2606        #[unsafe(method(cubicYards))]
2607        #[unsafe(method_family = none)]
2608        pub fn cubicYards() -> Retained<NSUnitVolume>;
2609
2610        #[unsafe(method(cubicMiles))]
2611        #[unsafe(method_family = none)]
2612        pub fn cubicMiles() -> Retained<NSUnitVolume>;
2613
2614        #[unsafe(method(acreFeet))]
2615        #[unsafe(method_family = none)]
2616        pub fn acreFeet() -> Retained<NSUnitVolume>;
2617
2618        #[unsafe(method(bushels))]
2619        #[unsafe(method_family = none)]
2620        pub fn bushels() -> Retained<NSUnitVolume>;
2621
2622        #[unsafe(method(teaspoons))]
2623        #[unsafe(method_family = none)]
2624        pub fn teaspoons() -> Retained<NSUnitVolume>;
2625
2626        #[unsafe(method(tablespoons))]
2627        #[unsafe(method_family = none)]
2628        pub fn tablespoons() -> Retained<NSUnitVolume>;
2629
2630        #[unsafe(method(fluidOunces))]
2631        #[unsafe(method_family = none)]
2632        pub fn fluidOunces() -> Retained<NSUnitVolume>;
2633
2634        #[unsafe(method(cups))]
2635        #[unsafe(method_family = none)]
2636        pub fn cups() -> Retained<NSUnitVolume>;
2637
2638        #[unsafe(method(pints))]
2639        #[unsafe(method_family = none)]
2640        pub fn pints() -> Retained<NSUnitVolume>;
2641
2642        #[unsafe(method(quarts))]
2643        #[unsafe(method_family = none)]
2644        pub fn quarts() -> Retained<NSUnitVolume>;
2645
2646        #[unsafe(method(gallons))]
2647        #[unsafe(method_family = none)]
2648        pub fn gallons() -> Retained<NSUnitVolume>;
2649
2650        #[unsafe(method(imperialTeaspoons))]
2651        #[unsafe(method_family = none)]
2652        pub fn imperialTeaspoons() -> Retained<NSUnitVolume>;
2653
2654        #[unsafe(method(imperialTablespoons))]
2655        #[unsafe(method_family = none)]
2656        pub fn imperialTablespoons() -> Retained<NSUnitVolume>;
2657
2658        #[unsafe(method(imperialFluidOunces))]
2659        #[unsafe(method_family = none)]
2660        pub fn imperialFluidOunces() -> Retained<NSUnitVolume>;
2661
2662        #[unsafe(method(imperialPints))]
2663        #[unsafe(method_family = none)]
2664        pub fn imperialPints() -> Retained<NSUnitVolume>;
2665
2666        #[unsafe(method(imperialQuarts))]
2667        #[unsafe(method_family = none)]
2668        pub fn imperialQuarts() -> Retained<NSUnitVolume>;
2669
2670        #[unsafe(method(imperialGallons))]
2671        #[unsafe(method_family = none)]
2672        pub fn imperialGallons() -> Retained<NSUnitVolume>;
2673
2674        #[unsafe(method(metricCups))]
2675        #[unsafe(method_family = none)]
2676        pub fn metricCups() -> Retained<NSUnitVolume>;
2677    );
2678}
2679
2680/// Methods declared on superclass `NSDimension`.
2681impl NSUnitVolume {
2682    extern_methods!(
2683        #[cfg(feature = "NSString")]
2684        #[unsafe(method(initWithSymbol:converter:))]
2685        #[unsafe(method_family = init)]
2686        pub fn initWithSymbol_converter(
2687            this: Allocated<Self>,
2688            symbol: &NSString,
2689            converter: &NSUnitConverter,
2690        ) -> Retained<Self>;
2691
2692        #[unsafe(method(baseUnit))]
2693        #[unsafe(method_family = none)]
2694        pub fn baseUnit() -> Retained<Self>;
2695    );
2696}
2697
2698/// Methods declared on superclass `NSUnit`.
2699impl NSUnitVolume {
2700    extern_methods!(
2701        #[unsafe(method(init))]
2702        #[unsafe(method_family = init)]
2703        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
2704
2705        #[unsafe(method(new))]
2706        #[unsafe(method_family = new)]
2707        pub unsafe fn new() -> Retained<Self>;
2708
2709        #[cfg(feature = "NSString")]
2710        #[unsafe(method(initWithSymbol:))]
2711        #[unsafe(method_family = init)]
2712        pub fn initWithSymbol(this: Allocated<Self>, symbol: &NSString) -> Retained<Self>;
2713    );
2714}