Trait UIObjectTraitDefinition

Source
pub unsafe trait UIObjectTraitDefinition: UITraitDefinition + MainThreadOnly {
    // Provided method
    unsafe fn defaultValue(
        mtm: MainThreadMarker,
    ) -> Option<Retained<ProtocolObject<dyn NSObjectProtocol>>>
       where Self: Sized + ClassType { ... }
}
Available on crate feature UITrait only.
Expand description

Provided Methods§

Source

unsafe fn defaultValue( mtm: MainThreadMarker, ) -> Option<Retained<ProtocolObject<dyn NSObjectProtocol>>>
where Self: Sized + ClassType,

The default value for this trait in a trait collection when no value has been set.

Trait Implementations§

Source§

impl ProtocolType for dyn UIObjectTraitDefinition

Source§

const NAME: &'static str = "UIObjectTraitDefinition"

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 UIObjectTraitDefinition

Implementations on Foreign Types§

Source§

impl<T> UIObjectTraitDefinition for ProtocolObject<T>

Implementors§