objc2_phase/generated/
PHASEDefinition.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::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// *************************************************************************************************
11    ///
12    ///
13    ///
14    /// The base class for a definition.
15    ///
16    /// Contains an identifer that uniquely represents this definition.
17    ///
18    /// See also [Apple's documentation](https://developer.apple.com/documentation/phase/phasedefinition?language=objc)
19    #[unsafe(super(NSObject))]
20    #[derive(Debug, PartialEq, Eq, Hash)]
21    pub struct PHASEDefinition;
22);
23
24extern_conformance!(
25    unsafe impl NSObjectProtocol for PHASEDefinition {}
26);
27
28impl PHASEDefinition {
29    extern_methods!(
30        #[unsafe(method(init))]
31        #[unsafe(method_family = init)]
32        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
33
34        #[unsafe(method(new))]
35        #[unsafe(method_family = new)]
36        pub unsafe fn new() -> Retained<Self>;
37
38        /// The identifier that uniquely represents this definition.
39        #[unsafe(method(identifier))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn identifier(&self) -> Retained<NSString>;
42    );
43}