objc2_intents/generated/
INWorkoutGoalUnitType.rs1use objc2::__framework_prelude::*;
4
5use crate::*;
6
7#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct INWorkoutGoalUnitType(pub NSInteger);
12impl INWorkoutGoalUnitType {
13 #[doc(alias = "INWorkoutGoalUnitTypeUnknown")]
14 pub const Unknown: Self = Self(0);
15 #[doc(alias = "INWorkoutGoalUnitTypeInch")]
16 pub const Inch: Self = Self(1);
17 #[doc(alias = "INWorkoutGoalUnitTypeMeter")]
18 pub const Meter: Self = Self(2);
19 #[doc(alias = "INWorkoutGoalUnitTypeFoot")]
20 pub const Foot: Self = Self(3);
21 #[doc(alias = "INWorkoutGoalUnitTypeMile")]
22 pub const Mile: Self = Self(4);
23 #[doc(alias = "INWorkoutGoalUnitTypeYard")]
24 pub const Yard: Self = Self(5);
25 #[doc(alias = "INWorkoutGoalUnitTypeSecond")]
26 pub const Second: Self = Self(6);
27 #[doc(alias = "INWorkoutGoalUnitTypeMinute")]
28 pub const Minute: Self = Self(7);
29 #[doc(alias = "INWorkoutGoalUnitTypeHour")]
30 pub const Hour: Self = Self(8);
31 #[doc(alias = "INWorkoutGoalUnitTypeJoule")]
32 pub const Joule: Self = Self(9);
33 #[doc(alias = "INWorkoutGoalUnitTypeKiloCalorie")]
34 pub const KiloCalorie: Self = Self(10);
35}
36
37unsafe impl Encode for INWorkoutGoalUnitType {
38 const ENCODING: Encoding = NSInteger::ENCODING;
39}
40
41unsafe impl RefEncode for INWorkoutGoalUnitType {
42 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
43}