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§
Sourceunsafe fn containsTrait(&self, trait: &UITrait) -> bool
Available on crate feature UITrait only.
unsafe fn containsTrait(&self, trait: &UITrait) -> bool
UITrait only.§Safety
trait must implement UITraitDefinition.
Trait Implementations§
impl<T> ImplementedBy<T> for dyn UITraitOverrides
Source§impl ProtocolType for dyn UITraitOverrides
impl ProtocolType for dyn UITraitOverrides
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".