Skip to main content

NSItemProviderReading

Trait NSItemProviderReading 

Source
pub unsafe trait NSItemProviderReading: NSObjectProtocol {
    // Provided methods
    fn readableTypeIdentifiersForItemProvider() -> Retained<NSArray<NSString>>
       where Self: Sized + ClassType { ... }
    fn objectWithItemProviderData_typeIdentifier_error(
        data: &NSData,
        type_identifier: &NSString,
    ) -> Result<Retained<Self>, Retained<NSError>>
       where Self: Sized + ClassType { ... }
}
Available on crate feature NSItemProvider only.
Expand description

Provided Methods§

Source

fn readableTypeIdentifiersForItemProvider() -> Retained<NSArray<NSString>>
where Self: Sized + ClassType,

Available on crate features NSArray and NSString only.
Source

fn objectWithItemProviderData_typeIdentifier_error( data: &NSData, type_identifier: &NSString, ) -> Result<Retained<Self>, Retained<NSError>>
where Self: Sized + ClassType,

Available on crate features NSData and NSError and NSString only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSItemProviderReading

Source§

impl ProtocolType for dyn NSItemProviderReading

Source§

const NAME: &'static str = "NSItemProviderReading"

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

Implementors§

Source§

impl NSItemProviderReading for NSString

Available on crate feature NSString only.
Source§

impl NSItemProviderReading for NSURL

Available on crate feature NSURL only.