Trait objc2_foundation::NSMutableCopying
source · pub unsafe trait NSMutableCopying {
// Provided methods
fn mutableCopy(&self) -> Retained<Self::Mutable>
where Self: Sized + Message + CounterpartOrSelf { ... }
unsafe fn mutableCopyWithZone(
&self,
zone: *mut NSZone
) -> Retained<Self::Mutable>
where Self: Sized + Message + CounterpartOrSelf { ... }
}
Available on crate feature
NSObject
only.Expand description
A protocol to provide mutable copies of objects.
Only classes that have an “immutable vs. mutable” distinction should adopt this protocol.
See Apple’s documentation for details.
Provided Methods§
sourcefn mutableCopy(&self) -> Retained<Self::Mutable>
fn mutableCopy(&self) -> Retained<Self::Mutable>
Returns a new instance that’s a mutable copy of the receiver.
The output type is the mutable counterpart of the object. E.g. both
NSString
and NSMutableString
return NSMutableString
.
sourceunsafe fn mutableCopyWithZone(
&self,
zone: *mut NSZone
) -> Retained<Self::Mutable>
Available on crate feature NSZone
only.
unsafe fn mutableCopyWithZone( &self, zone: *mut NSZone ) -> Retained<Self::Mutable>
NSZone
only.Returns a new instance that’s a mutable copy of the receiver.
This is only used when implementing NSMutableCopying
, use
mutableCopy
instead.
§Safety
The zone pointer must be valid or NULL.
Trait Implementations§
source§impl ProtocolType for dyn NSMutableCopying
impl ProtocolType for dyn NSMutableCopying
impl<T> ImplementedBy<T> for dyn NSMutableCopying
Implementations on Foreign Types§
impl<T> NSMutableCopying for ProtocolObject<T>where
T: ?Sized + NSMutableCopying,
Implementors§
impl NSMutableCopying for NSAttributedString
Available on crate feature
NSAttributedString
only.impl NSMutableCopying for NSCharacterSet
Available on crate feature
NSCharacterSet
only.impl NSMutableCopying for NSData
Available on crate feature
NSData
only.impl NSMutableCopying for NSIndexSet
Available on crate feature
NSIndexSet
only.impl NSMutableCopying for NSMutableAttributedString
Available on crate feature
NSAttributedString
only.impl NSMutableCopying for NSMutableCharacterSet
Available on crate feature
NSCharacterSet
only.impl NSMutableCopying for NSMutableData
Available on crate feature
NSData
only.impl NSMutableCopying for NSMutableIndexSet
Available on crate feature
NSIndexSet
only.impl NSMutableCopying for NSMutableString
Available on crate feature
NSString
only.impl NSMutableCopying for NSMutableURLRequest
Available on crate feature
NSURLRequest
only.impl NSMutableCopying for NSString
Available on crate feature
NSString
only.impl NSMutableCopying for NSURLRequest
Available on crate feature
NSURLRequest
only.impl<KeyType: ?Sized + IsIdCloneable, ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSDictionary<KeyType, ObjectType>
Available on crate feature
NSDictionary
only.impl<KeyType: ?Sized + IsIdCloneable, ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSMutableDictionary<KeyType, ObjectType>
Available on crate feature
NSDictionary
only.impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSArray<ObjectType>
Available on crate feature
NSArray
only.impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSCountedSet<ObjectType>
Available on crate feature
NSSet
only.impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSMutableArray<ObjectType>
Available on crate feature
NSArray
only.impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSMutableOrderedSet<ObjectType>
Available on crate feature
NSOrderedSet
only.impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSMutableSet<ObjectType>
Available on crate feature
NSSet
only.impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSOrderedSet<ObjectType>
Available on crate feature
NSOrderedSet
only.impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSSet<ObjectType>
Available on crate feature
NSSet
only.