Trait UISearchTextFieldPasteItem

Source
pub unsafe trait UISearchTextFieldPasteItem: UITextPasteItem + MainThreadOnly {
    // Provided method
    unsafe 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§

Source

unsafe fn setSearchTokenResult(&self, token: &UISearchToken)
where Self: Sized + Message,

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

Source§

const NAME: &'static str = "UISearchTextFieldPasteItem"

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
Source§

impl<T> ImplementedBy<T> for dyn UISearchTextFieldPasteItem

Implementations on Foreign Types§

Source§

impl<T> UISearchTextFieldPasteItem for ProtocolObject<T>

Implementors§