Skip to main content

UISearchTextFieldPasteItem

Trait UISearchTextFieldPasteItem 

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

Source

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<T> ImplementedBy<T> for dyn UISearchTextFieldPasteItem

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

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> UISearchTextFieldPasteItem for ProtocolObject<T>

Implementors§