Skip to main content

WebDocumentSearching

Trait WebDocumentSearching 

Source
pub unsafe trait WebDocumentSearching: NSObjectProtocol {
    // Provided method
    unsafe fn searchFor_direction_caseSensitive_wrap(
        &self,
        string: Option<&NSString>,
        forward: bool,
        case_flag: bool,
        wrap_flag: bool,
    ) -> bool
       where Self: Sized + Message { ... }
}
👎Deprecated
Available on crate feature WebDocument only.
Expand description

Optional protocol for searching document view of WebFrameView.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn searchFor_direction_caseSensitive_wrap( &self, string: Option<&NSString>, forward: bool, case_flag: bool, wrap_flag: bool, ) -> bool
where Self: Sized + Message,

👎Deprecated

Searches a document view for a string and highlights the string if it is found.

Parameter string: The string to search for.

Parameter forward: YES to search forward, NO to seach backwards.

Parameter caseFlag: YES to for case-sensitive search, NO for case-insensitive search.

Parameter wrapFlag: YES to wrap around, NO to avoid wrapping.

Returns: YES if found, NO if not found.

§Safety

string might not allow None.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn WebDocumentSearching

Source§

impl ProtocolType for dyn WebDocumentSearching

Source§

const NAME: &'static str = "WebDocumentSearching"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> WebDocumentSearching for ProtocolObject<T>

Implementors§