Skip to main content

UINSIntegerTraitDefinition

Trait UINSIntegerTraitDefinition 

Source
pub unsafe trait UINSIntegerTraitDefinition: UITraitDefinition + MainThreadOnly {
    // Provided method
    fn defaultValue(mtm: MainThreadMarker) -> NSInteger
       where Self: Sized + ClassType { ... }
}
Available on crate feature UITrait only.
Expand description

Provided Methods§

Source

fn defaultValue(mtm: MainThreadMarker) -> NSInteger
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 UINSIntegerTraitDefinition

Source§

impl ProtocolType for dyn UINSIntegerTraitDefinition

Source§

const NAME: &'static str = "UINSIntegerTraitDefinition"

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> UINSIntegerTraitDefinition for ProtocolObject<T>

Implementors§