objc2_web_kit/generated/
WKFindResult.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    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/wkfindresult?language=objc)
11    #[unsafe(super(NSObject))]
12    #[thread_kind = MainThreadOnly]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct WKFindResult;
15);
16
17unsafe impl NSCopying for WKFindResult {}
18
19unsafe impl CopyingHelper for WKFindResult {
20    type Result = Self;
21}
22
23unsafe impl NSObjectProtocol for WKFindResult {}
24
25impl WKFindResult {
26    extern_methods!(
27        #[unsafe(method(init))]
28        #[unsafe(method_family = init)]
29        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
30
31        #[unsafe(method(matchFound))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn matchFound(&self) -> bool;
34    );
35}
36
37/// Methods declared on superclass `NSObject`.
38impl WKFindResult {
39    extern_methods!(
40        #[unsafe(method(new))]
41        #[unsafe(method_family = new)]
42        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
43    );
44}