pub unsafe trait NSCollectionLayoutEnvironment: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn container(
        &self
    ) -> Retained<ProtocolObject<dyn NSCollectionLayoutContainer>>
       where Self: Sized + Message { ... }
    unsafe fn traitCollection(&self) -> Retained<UITraitCollection>
       where Self: Sized + Message { ... }
}
Available on crate feature UICollectionViewCompositionalLayout only.

Provided Methods§

source

unsafe fn container( &self ) -> Retained<ProtocolObject<dyn NSCollectionLayoutContainer>>
where Self: Sized + Message,

source

unsafe fn traitCollection(&self) -> Retained<UITraitCollection>
where Self: Sized + Message,

Available on crate feature UITraitCollection only.

Trait Implementations§

source§

impl ProtocolType for dyn NSCollectionLayoutEnvironment

source§

const NAME: &'static str = "NSCollectionLayoutEnvironment"

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 NSCollectionLayoutEnvironment

Implementations on Foreign Types§

source§

impl<T> NSCollectionLayoutEnvironment for ProtocolObject<T>

Implementors§