objc2_web_kit/generated/
WKContentRuleList.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[thread_kind = MainThreadOnly]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct WKContentRuleList;
15);
16
17extern_conformance!(
18 unsafe impl NSObjectProtocol for WKContentRuleList {}
19);
20
21impl WKContentRuleList {
22 extern_methods!(
23 #[unsafe(method(identifier))]
25 #[unsafe(method_family = none)]
26 pub unsafe fn identifier(&self) -> Retained<NSString>;
27 );
28}
29
30impl WKContentRuleList {
32 extern_methods!(
33 #[unsafe(method(init))]
34 #[unsafe(method_family = init)]
35 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
36
37 #[unsafe(method(new))]
38 #[unsafe(method_family = new)]
39 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
40 );
41}