Trait objc2::mutability::IsIdCloneable

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

Marker trait for classes where Id::clone is safe.

Since the Foundation collection types (NSArray<T>, NSDictionary<K, V>, …) act as if they store Ids, this also makes certain functionality on those types possible.

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 IsIdCloneable for AnyObject

source§

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

source§

impl<T: ?Sized + ClassType> IsIdCloneable for T
where T::Mutability: MutabilityIsIdCloneable,