#[repr(C)]pub struct UICollectionViewDiffableDataSourceReorderingHandlers<SectionType: ?Sized = AnyObject, ItemType: ?Sized = AnyObject> { /* private fields */ }
Available on crate feature
UIDiffableDataSource
only.Implementations§
source§impl<SectionType: Message, ItemType: Message> UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: Message, ItemType: Message> UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
pub unsafe fn canReorderItemHandler( &self ) -> *mut Block<dyn Fn(NonNull<ItemType>) -> Bool>
Available on crate feature
block2
only.pub unsafe fn setCanReorderItemHandler( &self, can_reorder_item_handler: Option<&Block<dyn Fn(NonNull<ItemType>) -> Bool>> )
Available on crate feature
block2
only.pub unsafe fn willReorderHandler( &self ) -> *mut Block<dyn Fn(NonNull<NSDiffableDataSourceTransaction<SectionType, ItemType>>)>
Available on crate feature
block2
only.pub unsafe fn setWillReorderHandler( &self, will_reorder_handler: Option<&Block<dyn Fn(NonNull<NSDiffableDataSourceTransaction<SectionType, ItemType>>)>> )
Available on crate feature
block2
only.pub unsafe fn didReorderHandler( &self ) -> *mut Block<dyn Fn(NonNull<NSDiffableDataSourceTransaction<SectionType, ItemType>>)>
Available on crate feature
block2
only.pub unsafe fn setDidReorderHandler( &self, did_reorder_handler: Option<&Block<dyn Fn(NonNull<NSDiffableDataSourceTransaction<SectionType, ItemType>>)>> )
Available on crate feature
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<SectionType: ?Sized + Message, ItemType: ?Sized + Message> AsMut<AnyObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> AsMut<AnyObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> AsMut<NSObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> AsMut<NSObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> AsMut<UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> AsMut<UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> AsRef<AnyObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> AsRef<AnyObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> AsRef<NSObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> AsRef<NSObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> AsRef<UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> AsRef<UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> Borrow<AnyObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> Borrow<AnyObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> Borrow<NSObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> Borrow<NSObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> BorrowMut<AnyObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> BorrowMut<AnyObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, 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<SectionType: ?Sized + Message, ItemType: ?Sized + Message> BorrowMut<NSObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> BorrowMut<NSObject> for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, 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<SectionType: ?Sized + Message, ItemType: ?Sized + Message> ClassType for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> ClassType for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "UICollectionViewDiffableDataSourceReorderingHandlers"
const NAME: &'static str = "UICollectionViewDiffableDataSourceReorderingHandlers"
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<SectionType: Debug + ?Sized, ItemType: Debug + ?Sized> Debug for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: Debug + ?Sized, ItemType: Debug + ?Sized> Debug for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> Deref for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> Deref for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> DerefMut for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> DerefMut for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§impl<SectionType: Hash + ?Sized, ItemType: Hash + ?Sized> Hash for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: Hash + ?Sized, ItemType: Hash + ?Sized> Hash for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§impl<SectionType: PartialEq + ?Sized, ItemType: PartialEq + ?Sized> PartialEq for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: PartialEq + ?Sized, ItemType: PartialEq + ?Sized> PartialEq for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
source§fn eq(
&self,
other: &UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
) -> bool
fn eq( &self, other: &UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType> ) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> RefEncode for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> RefEncode for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, 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<SectionType: Eq + ?Sized, ItemType: Eq + ?Sized> Eq for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + Message, ItemType: ?Sized + Message> Message for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized + IsIdCloneable, ItemType: ?Sized + IsIdCloneable> NSCopying for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized, ItemType: ?Sized> NSObjectProtocol for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType: ?Sized, ItemType: ?Sized> StructuralPartialEq for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
Auto Trait Implementations§
impl<SectionType = AnyObject, ItemType = AnyObject> !Freeze for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType = AnyObject, ItemType = AnyObject> !RefUnwindSafe for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType = AnyObject, ItemType = AnyObject> !Send for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType = AnyObject, ItemType = AnyObject> !Sync for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType = AnyObject, ItemType = AnyObject> !Unpin for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, ItemType>
impl<SectionType = AnyObject, ItemType = AnyObject> !UnwindSafe for UICollectionViewDiffableDataSourceReorderingHandlers<SectionType, 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