#[repr(C)]pub struct NSDiffableDataSourceSectionSnapshot<ItemIdentifierType: ?Sized = AnyObject> { /* private fields */ }
Available on crate feature
NSDiffableDataSourceSectionSnapshot
only.Implementations§
source§impl<ItemIdentifierType: Message> NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: Message> NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>
pub unsafe fn appendItems(&self, items: &NSArray<ItemIdentifierType>)
pub unsafe fn appendItems_intoParentItem( &self, items: &NSArray<ItemIdentifierType>, parent_item: Option<&ItemIdentifierType> )
pub unsafe fn insertItems_beforeItem( &self, items: &NSArray<ItemIdentifierType>, before_identifier: &ItemIdentifierType )
pub unsafe fn insertItems_afterItem( &self, items: &NSArray<ItemIdentifierType>, after_identifier: &ItemIdentifierType )
pub unsafe fn deleteItems(&self, items: &NSArray<ItemIdentifierType>)
pub unsafe fn deleteAllItems(&self)
pub unsafe fn expandItems(&self, items: &NSArray<ItemIdentifierType>)
pub unsafe fn collapseItems(&self, items: &NSArray<ItemIdentifierType>)
pub unsafe fn replaceChildrenOfParentItem_withSnapshot( &self, parent_item: &ItemIdentifierType, snapshot: &NSDiffableDataSourceSectionSnapshot<ItemIdentifierType> )
pub unsafe fn insertSnapshot_beforeItem( &self, snapshot: &NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>, item: &ItemIdentifierType )
pub unsafe fn insertSnapshot_afterItem( &self, snapshot: &NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>, item: &ItemIdentifierType ) -> Retained<ItemIdentifierType>
pub unsafe fn isExpanded(&self, item: &ItemIdentifierType) -> bool
pub unsafe fn isVisible(&self, item: &ItemIdentifierType) -> bool
pub unsafe fn containsItem(&self, item: &ItemIdentifierType) -> bool
pub unsafe fn levelOfItem(&self, item: &ItemIdentifierType) -> NSInteger
pub unsafe fn indexOfItem(&self, item: &ItemIdentifierType) -> NSInteger
pub unsafe fn expandedItems(&self) -> Retained<NSArray<ItemIdentifierType>>
pub unsafe fn parentOfChildItem( &self, child_item: &ItemIdentifierType ) -> Option<Retained<ItemIdentifierType>>
pub unsafe fn snapshotOfParentItem( &self, parent_item: &ItemIdentifierType ) -> Retained<NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>>
pub unsafe fn snapshotOfParentItem_includingParentItem( &self, parent_item: &ItemIdentifierType, including_parent_item: bool ) -> Retained<NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>>
pub unsafe fn rootItems(&self) -> Retained<NSArray<ItemIdentifierType>>
pub unsafe fn visibleItems(&self) -> Retained<NSArray<ItemIdentifierType>>
pub unsafe fn visualDescription(&self) -> Retained<NSString>
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
Available on crate feature UIIndirectScribbleInteraction
only.
pub fn class(&self) -> &'static AnyClass
UIIndirectScribbleInteraction
only.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.Available on crate feature UIIndirectScribbleInteraction
only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.UIIndirectScribbleInteraction
only.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.Available on crate feature UIIndirectScribbleInteraction
only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.UIIndirectScribbleInteraction
only.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<ItemIdentifierType: ?Sized + Message> AsMut<AnyObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> AsMut<AnyObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§impl<ItemIdentifierType: ?Sized + Message> AsMut<NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> AsMut<NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§impl<ItemIdentifierType: ?Sized + Message> AsMut<NSObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> AsMut<NSObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§impl<ItemIdentifierType: ?Sized + Message> AsRef<AnyObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> AsRef<AnyObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§impl<ItemIdentifierType: ?Sized + Message> AsRef<NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> AsRef<NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§impl<ItemIdentifierType: ?Sized + Message> AsRef<NSObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> AsRef<NSObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§impl<ItemIdentifierType: ?Sized + Message> Borrow<AnyObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> Borrow<AnyObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§impl<ItemIdentifierType: ?Sized + Message> Borrow<NSObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> Borrow<NSObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§impl<ItemIdentifierType: ?Sized + Message> BorrowMut<AnyObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> BorrowMut<AnyObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
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<ItemIdentifierType: ?Sized + Message> BorrowMut<NSObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> BorrowMut<NSObject> for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
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<ItemIdentifierType: ?Sized + Message> ClassType for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> ClassType for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
§type Mutability = InteriorMutable
type Mutability = InteriorMutable
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSDiffableDataSourceSectionSnapshot"
const NAME: &'static str = "NSDiffableDataSourceSectionSnapshot"
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<ItemIdentifierType: Debug + ?Sized> Debug for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: Debug + ?Sized> Debug for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§impl<ItemIdentifierType: ?Sized + Message> Deref for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> Deref for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§impl<ItemIdentifierType: ?Sized + Message> DerefMut for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> DerefMut for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§impl<ItemIdentifierType: Hash + ?Sized> Hash for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: Hash + ?Sized> Hash for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§impl<ItemIdentifierType: PartialEq + ?Sized> PartialEq for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: PartialEq + ?Sized> PartialEq for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
source§fn eq(
&self,
other: &NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
) -> bool
fn eq( &self, other: &NSDiffableDataSourceSectionSnapshot<ItemIdentifierType> ) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<ItemIdentifierType: ?Sized + Message> RefEncode for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> RefEncode for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
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<ItemIdentifierType: Eq + ?Sized> Eq for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + Message> Message for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized + IsIdCloneable> NSCopying for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized> NSObjectProtocol for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType: ?Sized> StructuralPartialEq for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
Auto Trait Implementations§
impl<ItemIdentifierType = AnyObject> !Freeze for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType = AnyObject> !RefUnwindSafe for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType = AnyObject> !Send for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType = AnyObject> !Sync for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType = AnyObject> !Unpin for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
impl<ItemIdentifierType = AnyObject> !UnwindSafe for NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
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