Trait objc2::mutability::IsAllocableAnyThread

source ·
pub unsafe trait IsAllocableAnyThread: Sealed { }
Expand description

Marker trait for classes that can be allocated from any thread.

This is implemented for classes whose ClassType::Mutability is one of:

§Safety

This is a sealed trait, and should not need to be implemented. Open an issue if you know a use-case where this restrition should be lifted!

Implementors§

source§

impl<P: ?Sized + IsAllocableAnyThread> IsAllocableAnyThread for ProtocolObject<P>

source§

impl<T: ?Sized + ClassType> IsAllocableAnyThread for T
where T::Mutability: MutabilityIsAllocableAnyThread,