pub unsafe trait UIConfigurationState:
NSObjectProtocol
+ NSCopying
+ NSSecureCoding
+ MainThreadOnly {
// Provided methods
fn initWithTraitCollection(
this: Allocated<Self>,
trait_collection: &UITraitCollection,
) -> Retained<Self>
where Self: Sized + Message { ... }
fn traitCollection(&self) -> Retained<UITraitCollection>
where Self: Sized + Message { ... }
fn setTraitCollection(&self, trait_collection: &UITraitCollection)
where Self: Sized + Message { ... }
fn customStateForKey(
&self,
key: &UIConfigurationStateCustomKey,
) -> Option<Retained<AnyObject>>
where Self: Sized + Message { ... }
unsafe fn setCustomState_forKey(
&self,
custom_state: Option<&AnyObject>,
key: &UIConfigurationStateCustomKey,
)
where Self: Sized + Message { ... }
fn objectForKeyedSubscript(
&self,
key: &UIConfigurationStateCustomKey,
) -> Option<Retained<AnyObject>>
where Self: Sized + Message { ... }
unsafe fn setObject_forKeyedSubscript(
&self,
obj: Option<&AnyObject>,
key: &UIConfigurationStateCustomKey,
)
where Self: Sized + Message { ... }
}Available on crate feature
UIConfigurationState only.Expand description
Provided Methods§
Sourcefn initWithTraitCollection(
this: Allocated<Self>,
trait_collection: &UITraitCollection,
) -> Retained<Self>
Available on crate feature UITraitCollection only.
fn initWithTraitCollection( this: Allocated<Self>, trait_collection: &UITraitCollection, ) -> Retained<Self>
UITraitCollection only.Returns a new instance with the specified trait collection.
fn traitCollection(&self) -> Retained<UITraitCollection>
Available on crate feature
UITraitCollection only.Sourcefn setTraitCollection(&self, trait_collection: &UITraitCollection)
Available on crate feature UITraitCollection only.
fn setTraitCollection(&self, trait_collection: &UITraitCollection)
UITraitCollection only.Setter for traitCollection.
Sourcefn customStateForKey(
&self,
key: &UIConfigurationStateCustomKey,
) -> Option<Retained<AnyObject>>
fn customStateForKey( &self, key: &UIConfigurationStateCustomKey, ) -> Option<Retained<AnyObject>>
Returns the custom state for the specified key.
Sourceunsafe fn setCustomState_forKey(
&self,
custom_state: Option<&AnyObject>,
key: &UIConfigurationStateCustomKey,
)
unsafe fn setCustomState_forKey( &self, custom_state: Option<&AnyObject>, key: &UIConfigurationStateCustomKey, )
fn objectForKeyedSubscript( &self, key: &UIConfigurationStateCustomKey, ) -> Option<Retained<AnyObject>>
Sourceunsafe fn setObject_forKeyedSubscript(
&self,
obj: Option<&AnyObject>,
key: &UIConfigurationStateCustomKey,
)
unsafe fn setObject_forKeyedSubscript( &self, obj: Option<&AnyObject>, key: &UIConfigurationStateCustomKey, )
§Safety
obj should be of the correct type.
Trait Implementations§
impl<T> ImplementedBy<T> for dyn UIConfigurationState
Source§impl ProtocolType for dyn UIConfigurationState
impl ProtocolType for dyn UIConfigurationState
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl<T> UIConfigurationState for ProtocolObject<T>where
T: ?Sized + UIConfigurationState,
Implementors§
impl UIConfigurationState for UICellConfigurationState
Available on crate feature
UICellConfigurationState only.impl UIConfigurationState for UIViewConfigurationState
Available on crate feature
UIViewConfigurationState only.