Skip to main content

UIObjectTraitDefinition

Trait UIObjectTraitDefinition 

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

Provided Methods§

Source

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<T> ImplementedBy<T> for dyn UIObjectTraitDefinition

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIObjectTraitDefinition for ProtocolObject<T>

Implementors§