MDLObjectContainerComponent

Trait MDLObjectContainerComponent 

Source
pub unsafe trait MDLObjectContainerComponent: MDLComponent + NSFastEnumeration {
    // Provided methods
    unsafe fn addObject(&self, object: &MDLObject)
       where Self: Sized + Message { ... }
    unsafe fn removeObject(&self, object: &MDLObject)
       where Self: Sized + Message { ... }
    unsafe fn objectAtIndexedSubscript(
        &self,
        index: NSUInteger,
    ) -> Retained<MDLObject>
       where Self: Sized + Message { ... }
    unsafe fn count(&self) -> NSUInteger
       where Self: Sized + Message { ... }
    unsafe fn objects(&self) -> Retained<NSArray<MDLObject>>
       where Self: Sized + Message { ... }
}
Available on crate feature MDLTypes only.
Expand description

Provided Methods§

Source

unsafe fn addObject(&self, object: &MDLObject)
where Self: Sized + Message,

Available on crate feature MDLObject only.
Source

unsafe fn removeObject(&self, object: &MDLObject)
where Self: Sized + Message,

Available on crate feature MDLObject only.
Source

unsafe fn objectAtIndexedSubscript( &self, index: NSUInteger, ) -> Retained<MDLObject>
where Self: Sized + Message,

Available on crate feature MDLObject only.
Source

unsafe fn count(&self) -> NSUInteger
where Self: Sized + Message,

Source

unsafe fn objects(&self) -> Retained<NSArray<MDLObject>>
where Self: Sized + Message,

Available on crate feature MDLObject only.

Trait Implementations§

Source§

impl ProtocolType for dyn MDLObjectContainerComponent

Source§

const NAME: &'static str = "MDLObjectContainerComponent"

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 MDLObjectContainerComponent

Implementations on Foreign Types§

Source§

impl<T> MDLObjectContainerComponent for ProtocolObject<T>

Implementors§

Source§

impl MDLObjectContainerComponent for MDLObjectContainer

Available on crate feature MDLObject only.