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§

source

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.

source

unsafe fn mutableCopyWithZone( &self, zone: *mut NSZone ) -> Retained<Self::Mutable>

Available on crate feature 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

source§

const NAME: &'static str = "NSMutableCopying"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn NSMutableCopying

Implementations on Foreign Types§

source§

impl<T> NSMutableCopying for ProtocolObject<T>
where T: ?Sized + NSMutableCopying,

Implementors§

source§

impl NSMutableCopying for NSAttributedString

Available on crate feature NSAttributedString only.
source§

impl NSMutableCopying for NSCharacterSet

Available on crate feature NSCharacterSet only.
source§

impl NSMutableCopying for NSData

Available on crate feature NSData only.
source§

impl NSMutableCopying for NSIndexSet

Available on crate feature NSIndexSet only.
source§

impl NSMutableCopying for NSMutableAttributedString

Available on crate feature NSAttributedString only.
source§

impl NSMutableCopying for NSMutableCharacterSet

Available on crate feature NSCharacterSet only.
source§

impl NSMutableCopying for NSMutableData

Available on crate feature NSData only.
source§

impl NSMutableCopying for NSMutableIndexSet

Available on crate feature NSIndexSet only.
source§

impl NSMutableCopying for NSMutableString

Available on crate feature NSString only.
source§

impl NSMutableCopying for NSMutableURLRequest

Available on crate feature NSURLRequest only.
source§

impl NSMutableCopying for NSString

Available on crate feature NSString only.
source§

impl NSMutableCopying for NSURLRequest

Available on crate feature NSURLRequest only.
source§

impl<KeyType: ?Sized + IsIdCloneable, ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSDictionary<KeyType, ObjectType>

Available on crate feature NSDictionary only.
source§

impl<KeyType: ?Sized + IsIdCloneable, ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSMutableDictionary<KeyType, ObjectType>

Available on crate feature NSDictionary only.
source§

impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSArray<ObjectType>

Available on crate feature NSArray only.
source§

impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSCountedSet<ObjectType>

Available on crate feature NSSet only.
source§

impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSMutableArray<ObjectType>

Available on crate feature NSArray only.
source§

impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSMutableOrderedSet<ObjectType>

Available on crate feature NSOrderedSet only.
source§

impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSMutableSet<ObjectType>

Available on crate feature NSSet only.
source§

impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSOrderedSet<ObjectType>

Available on crate feature NSOrderedSet only.
source§

impl<ObjectType: ?Sized + IsIdCloneable> NSMutableCopying for NSSet<ObjectType>

Available on crate feature NSSet only.