use objc2::{
extern_class, extern_conformance, extern_methods, extern_protocol,
rc::{Allocated, Retained},
runtime::NSObject,
};
use objc2_foundation::NSObjectProtocol;
extern_protocol!(
#[expect(
clippy::missing_safety_doc,
reason = "extern_protocol does not attach this safety section to its generated unsafe trait"
)]
pub unsafe trait MTLFunctionStitchingAttribute: NSObjectProtocol {}
);
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MTLFunctionStitchingAttributeAlwaysInline;
);
extern_conformance!(
unsafe impl MTLFunctionStitchingAttribute for MTLFunctionStitchingAttributeAlwaysInline {}
);
extern_conformance!(
unsafe impl NSObjectProtocol for MTLFunctionStitchingAttributeAlwaysInline {}
);
impl MTLFunctionStitchingAttributeAlwaysInline {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new() -> Retained<Self>;
);
}