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§
Sourceunsafe fn searchFor_direction_caseSensitive_wrap(
&self,
string: Option<&NSString>,
forward: bool,
case_flag: bool,
wrap_flag: bool,
) -> bool
👎Deprecated
unsafe fn searchFor_direction_caseSensitive_wrap( &self, string: Option<&NSString>, forward: bool, case_flag: bool, wrap_flag: bool, ) -> bool
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§
impl<T> ImplementedBy<T> for dyn WebDocumentSearching
Source§impl ProtocolType for dyn WebDocumentSearching
impl ProtocolType for dyn WebDocumentSearching
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".