UITraitOverrides

Trait UITraitOverrides 

Source
pub unsafe trait UITraitOverrides: UIMutableTraits + MainThreadOnly {
    // Provided methods
    unsafe fn containsTrait(&self, trait: &UITrait) -> bool
       where Self: Sized + Message { ... }
    unsafe fn removeTrait(&self, trait: &UITrait)
       where Self: Sized + Message { ... }
}
Available on crate feature UITraitCollection only.
Expand description

Provided Methods§

Source

unsafe fn containsTrait(&self, trait: &UITrait) -> bool
where Self: Sized + Message,

Available on crate feature UITrait only.
§Safety

trait must implement UITraitDefinition.

Source

unsafe fn removeTrait(&self, trait: &UITrait)
where Self: Sized + Message,

Available on crate feature UITrait only.
§Safety

trait must implement UITraitDefinition.

Trait Implementations§

Source§

impl ProtocolType for dyn UITraitOverrides

Source§

const NAME: &'static str = "UITraitOverrides"

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 UITraitOverrides

Implementations on Foreign Types§

Source§

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

Implementors§