pub unsafe trait UISearchTextFieldPasteItem: UITextPasteItem + MainThreadOnly {
// Provided method
fn setSearchTokenResult(&self, token: &UISearchToken)
where Self: Sized + Message { ... }
}Available on crate features
UISearchTextField and UITextPasteDelegate only.Expand description
A protocol that refines UITextPasteItem to support pasting of tokens.
Paste items vended by UISearchTextField conform to this protocol.
See also Apple’s documentation
Provided Methods§
Sourcefn setSearchTokenResult(&self, token: &UISearchToken)
fn setSearchTokenResult(&self, token: &UISearchToken)
Transforms this paste item into a token at the end of the search text field’s token array.
Trait Implementations§
Source§impl ProtocolType for dyn UISearchTextFieldPasteItem
impl ProtocolType for dyn UISearchTextFieldPasteItem
impl<T> ImplementedBy<T> for dyn UISearchTextFieldPasteItem
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".