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
17extern_conformance!(
18    unsafe impl NSCopying for WKFindResult {}
19);
20
21unsafe impl CopyingHelper for WKFindResult {
22    type Result = Self;
23}
24
25extern_conformance!(
26    unsafe impl NSObjectProtocol for WKFindResult {}
27);
28
29impl WKFindResult {
30    extern_methods!(
31        #[unsafe(method(init))]
32        #[unsafe(method_family = init)]
33        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
34
35        #[unsafe(method(matchFound))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn matchFound(&self) -> bool;
38    );
39}
40
41/// Methods declared on superclass `NSObject`.
42impl WKFindResult {
43    extern_methods!(
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
47    );
48}