Trait objc2_foundation::NSItemProviderReading

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

Provided Methods§

source

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

Available on crate features NSArray and NSString only.
source

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

Available on crate features NSData and NSError and NSString only.

Trait Implementations§

source§

impl ProtocolType for dyn NSItemProviderReading

source§

const NAME: &'static str = "NSItemProviderReading"

The name of the Objective-C protocol that this type represents.
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 NSItemProviderReading

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.