NSCacheDelegate

Trait NSCacheDelegate 

Source
pub unsafe trait NSCacheDelegate: NSObjectProtocol {
    // Provided method
    unsafe fn cache_willEvictObject(&self, cache: &NSCache, obj: &AnyObject)
       where Self: Sized + Message { ... }
}
Available on crate feature NSCache only.
Expand description

Provided Methods§

Source

unsafe fn cache_willEvictObject(&self, cache: &NSCache, obj: &AnyObject)
where Self: Sized + Message,

§Safety
  • cache generic should be of the correct type.
  • obj should be of the correct type.

Trait Implementations§

Source§

impl ProtocolType for dyn NSCacheDelegate

Source§

const NAME: &'static str = "NSCacheDelegate"

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 NSCacheDelegate

Implementations on Foreign Types§

Source§

impl<T> NSCacheDelegate for ProtocolObject<T>
where T: ?Sized + NSCacheDelegate,

Implementors§