pub unsafe trait NSDiscardableContent {
// Provided methods
fn beginContentAccess(&self) -> bool
where Self: Sized + Message { ... }
fn endContentAccess(&self)
where Self: Sized + Message { ... }
fn discardContentIfPossible(&self)
where Self: Sized + Message { ... }
fn isContentDiscarded(&self) -> bool
where Self: Sized + Message { ... }
}Available on crate feature
NSObject only.Expand description
********* Discardable Content **********
See also Apple’s documentation
Provided Methods§
fn beginContentAccess(&self) -> bool
fn endContentAccess(&self)
fn discardContentIfPossible(&self)
fn isContentDiscarded(&self) -> bool
Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSDiscardableContent
Source§impl ProtocolType for dyn NSDiscardableContent
impl ProtocolType for dyn NSDiscardableContent
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl<T> NSDiscardableContent for ProtocolObject<T>where
T: ?Sized + NSDiscardableContent,
Implementors§
impl NSDiscardableContent for NSPurgeableData
Available on crate feature
NSData only.