#[repr(C)]pub struct NSOrderedCollectionChange<ObjectType: ?Sized = AnyObject> { /* private fields */ }
Available on crate feature
NSOrderedCollectionChange
only.Implementations§
source§impl<ObjectType: Message> NSOrderedCollectionChange<ObjectType>
impl<ObjectType: Message> NSOrderedCollectionChange<ObjectType>
pub unsafe fn changeWithObject_type_index( an_object: Option<&ObjectType>, type: NSCollectionChangeType, index: NSUInteger ) -> Retained<NSOrderedCollectionChange<ObjectType>>
pub unsafe fn changeWithObject_type_index_associatedIndex( an_object: Option<&ObjectType>, type: NSCollectionChangeType, index: NSUInteger, associated_index: NSUInteger ) -> Retained<NSOrderedCollectionChange<ObjectType>>
pub unsafe fn object(&self) -> Option<Retained<ObjectType>>
pub unsafe fn changeType(&self) -> NSCollectionChangeType
pub unsafe fn index(&self) -> NSUInteger
pub unsafe fn associatedIndex(&self) -> NSUInteger
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>
pub unsafe fn initWithObject_type_index( this: Allocated<Self>, an_object: Option<&ObjectType>, type: NSCollectionChangeType, index: NSUInteger ) -> Retained<Self>
pub unsafe fn initWithObject_type_index_associatedIndex( this: Allocated<Self>, an_object: Option<&ObjectType>, type: NSCollectionChangeType, index: NSUInteger, associated_index: NSUInteger ) -> Retained<Self>
Methods from Deref<Target = NSObject>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
pub fn class(&self) -> &'static AnyClass
Dynamically find the class of this object.
§Example
Check that an instance of NSObject
has the precise class NSObject
.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load
instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.Use Ivar::load
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.Use Ivar::load_mut
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
Trait Implementations§
source§impl<ObjectType: ?Sized + Message> AsMut<AnyObject> for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized + Message> AsMut<AnyObject> for NSOrderedCollectionChange<ObjectType>
source§impl<ObjectType: ?Sized + Message> AsMut<NSOrderedCollectionChange<ObjectType>> for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized + Message> AsMut<NSOrderedCollectionChange<ObjectType>> for NSOrderedCollectionChange<ObjectType>
source§impl<ObjectType: ?Sized + Message> AsRef<AnyObject> for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized + Message> AsRef<AnyObject> for NSOrderedCollectionChange<ObjectType>
source§impl<ObjectType: ?Sized + Message> AsRef<NSOrderedCollectionChange<ObjectType>> for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized + Message> AsRef<NSOrderedCollectionChange<ObjectType>> for NSOrderedCollectionChange<ObjectType>
source§impl<ObjectType: ?Sized + Message> Borrow<AnyObject> for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized + Message> Borrow<AnyObject> for NSOrderedCollectionChange<ObjectType>
source§impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized + Message> Borrow<NSObject> for NSOrderedCollectionChange<ObjectType>
source§impl<ObjectType: ?Sized + Message> BorrowMut<AnyObject> for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized + Message> BorrowMut<AnyObject> for NSOrderedCollectionChange<ObjectType>
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl<ObjectType: ?Sized + Message> BorrowMut<NSObject> for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized + Message> BorrowMut<NSObject> for NSOrderedCollectionChange<ObjectType>
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl<ObjectType: ?Sized + Message> ClassType for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized + Message> ClassType for NSOrderedCollectionChange<ObjectType>
§type Mutability = InteriorMutable
type Mutability = InteriorMutable
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSOrderedCollectionChange"
const NAME: &'static str = "NSOrderedCollectionChange"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl<ObjectType: PartialEq + ?Sized> PartialEq for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: PartialEq + ?Sized> PartialEq for NSOrderedCollectionChange<ObjectType>
source§fn eq(&self, other: &NSOrderedCollectionChange<ObjectType>) -> bool
fn eq(&self, other: &NSOrderedCollectionChange<ObjectType>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<ObjectType: ?Sized + Message> RefEncode for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized + Message> RefEncode for NSOrderedCollectionChange<ObjectType>
source§const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl<ObjectType: Eq + ?Sized> Eq for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized + Message> Message for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized> NSObjectProtocol for NSOrderedCollectionChange<ObjectType>
impl<ObjectType: ?Sized> StructuralPartialEq for NSOrderedCollectionChange<ObjectType>
Auto Trait Implementations§
impl<ObjectType = AnyObject> !Freeze for NSOrderedCollectionChange<ObjectType>
impl<ObjectType = AnyObject> !RefUnwindSafe for NSOrderedCollectionChange<ObjectType>
impl<ObjectType = AnyObject> !Send for NSOrderedCollectionChange<ObjectType>
impl<ObjectType = AnyObject> !Sync for NSOrderedCollectionChange<ObjectType>
impl<ObjectType = AnyObject> !Unpin for NSOrderedCollectionChange<ObjectType>
impl<ObjectType = AnyObject> !UnwindSafe for NSOrderedCollectionChange<ObjectType>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more