#[repr(C)]pub struct UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType: ?Sized = AnyObject> { /* private fields */ }
Available on crate feature
UIDiffableDataSource
only.Implementations§
source§impl<ItemType: Message> UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: Message> UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
pub unsafe fn shouldExpandItemHandler( &self ) -> *mut Block<dyn Fn(NonNull<ItemType>) -> Bool>
Available on crate feature
block2
only.pub unsafe fn setShouldExpandItemHandler( &self, should_expand_item_handler: Option<&Block<dyn Fn(NonNull<ItemType>) -> Bool>> )
Available on crate feature
block2
only.pub unsafe fn willExpandItemHandler( &self ) -> *mut Block<dyn Fn(NonNull<ItemType>)>
Available on crate feature
block2
only.pub unsafe fn setWillExpandItemHandler( &self, will_expand_item_handler: Option<&Block<dyn Fn(NonNull<ItemType>)>> )
Available on crate feature
block2
only.pub unsafe fn shouldCollapseItemHandler( &self ) -> *mut Block<dyn Fn(NonNull<ItemType>) -> Bool>
Available on crate feature
block2
only.pub unsafe fn setShouldCollapseItemHandler( &self, should_collapse_item_handler: Option<&Block<dyn Fn(NonNull<ItemType>) -> Bool>> )
Available on crate feature
block2
only.pub unsafe fn willCollapseItemHandler( &self ) -> *mut Block<dyn Fn(NonNull<ItemType>)>
Available on crate feature
block2
only.pub unsafe fn setWillCollapseItemHandler( &self, will_collapse_item_handler: Option<&Block<dyn Fn(NonNull<ItemType>)>> )
Available on crate feature
block2
only.pub unsafe fn snapshotForExpandingParentItemHandler( &self ) -> *mut Block<dyn Fn(NonNull<ItemType>, NonNull<NSDiffableDataSourceSectionSnapshot<ItemType>>) -> NonNull<NSDiffableDataSourceSectionSnapshot<ItemType>>>
Available on crate features
NSDiffableDataSourceSectionSnapshot
and block2
only.pub unsafe fn setSnapshotForExpandingParentItemHandler( &self, snapshot_for_expanding_parent_item_handler: Option<&Block<dyn Fn(NonNull<ItemType>, NonNull<NSDiffableDataSourceSectionSnapshot<ItemType>>) -> NonNull<NSDiffableDataSourceSectionSnapshot<ItemType>>>> )
Available on crate features
NSDiffableDataSourceSectionSnapshot
and block2
only.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<ItemType: ?Sized + Message> AsMut<AnyObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> AsMut<AnyObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§impl<ItemType: ?Sized + Message> AsMut<NSObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> AsMut<NSObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§impl<ItemType: ?Sized + Message> AsMut<UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> AsMut<UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§impl<ItemType: ?Sized + Message> AsRef<AnyObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> AsRef<AnyObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§impl<ItemType: ?Sized + Message> AsRef<NSObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> AsRef<NSObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§impl<ItemType: ?Sized + Message> AsRef<UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> AsRef<UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§impl<ItemType: ?Sized + Message> Borrow<AnyObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> Borrow<AnyObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§impl<ItemType: ?Sized + Message> Borrow<NSObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> Borrow<NSObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§impl<ItemType: ?Sized + Message> BorrowMut<AnyObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> BorrowMut<AnyObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
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<ItemType: ?Sized + Message> BorrowMut<NSObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> BorrowMut<NSObject> for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
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<ItemType: ?Sized + Message> ClassType for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> ClassType for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "UICollectionViewDiffableDataSourceSectionSnapshotHandlers"
const NAME: &'static str = "UICollectionViewDiffableDataSourceSectionSnapshotHandlers"
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<ItemType: Debug + ?Sized> Debug for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: Debug + ?Sized> Debug for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§impl<ItemType: ?Sized + Message> Deref for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> Deref for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§impl<ItemType: ?Sized + Message> DerefMut for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> DerefMut for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§impl<ItemType: Hash + ?Sized> Hash for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: Hash + ?Sized> Hash for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§impl<ItemType: PartialEq + ?Sized> PartialEq for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: PartialEq + ?Sized> PartialEq for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
source§fn eq(
&self,
other: &UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
) -> bool
fn eq( &self, other: &UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType> ) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<ItemType: ?Sized + Message> RefEncode for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> RefEncode for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
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<ItemType: Eq + ?Sized> Eq for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + Message> Message for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized + IsIdCloneable> NSCopying for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized> NSObjectProtocol for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType: ?Sized> StructuralPartialEq for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
Auto Trait Implementations§
impl<ItemType = AnyObject> !Freeze for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType = AnyObject> !RefUnwindSafe for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType = AnyObject> !Send for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType = AnyObject> !Sync for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType = AnyObject> !Unpin for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
impl<ItemType = AnyObject> !UnwindSafe for UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemType>
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