#[repr(C)]pub struct NSFetchedResultsController<ResultType: ?Sized = AnyObject> { /* private fields */ }Available on crate feature
NSFetchedResultsController only.Implementations§
source§impl<ResultType: Message> NSFetchedResultsController<ResultType>
impl<ResultType: Message> NSFetchedResultsController<ResultType>
pub unsafe fn initWithFetchRequest_managedObjectContext_sectionNameKeyPath_cacheName( this: Allocated<Self>, fetch_request: &NSFetchRequest<ResultType>, context: &NSManagedObjectContext, section_name_key_path: Option<&NSString>, name: Option<&NSString> ) -> Retained<Self>
Available on crate features
NSFetchRequest and NSManagedObjectContext and NSPersistentStoreRequest only.pub unsafe fn performFetch(&self) -> Result<(), Retained<NSError>>
pub unsafe fn fetchRequest(&self) -> Retained<NSFetchRequest<ResultType>>
Available on crate features
NSFetchRequest and NSPersistentStoreRequest only.pub unsafe fn managedObjectContext(&self) -> Retained<NSManagedObjectContext>
Available on crate feature
NSManagedObjectContext only.pub unsafe fn sectionNameKeyPath(&self) -> Option<Retained<NSString>>
pub unsafe fn cacheName(&self) -> Option<Retained<NSString>>
pub unsafe fn delegate( &self ) -> Option<Retained<ProtocolObject<dyn NSFetchedResultsControllerDelegate>>>
pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn NSFetchedResultsControllerDelegate>> )
pub unsafe fn deleteCacheWithName(name: Option<&NSString>)
pub unsafe fn fetchedObjects(&self) -> Option<Retained<NSArray<ResultType>>>
pub unsafe fn objectAtIndexPath( &self, index_path: &NSIndexPath ) -> Retained<ResultType>
pub unsafe fn indexPathForObject( &self, object: &ResultType ) -> Option<Retained<NSIndexPath>>
pub unsafe fn sectionIndexTitleForSectionName( &self, section_name: &NSString ) -> Option<Retained<NSString>>
pub unsafe fn sectionIndexTitles(&self) -> Retained<NSArray<NSString>>
pub unsafe fn sections( &self ) -> Option<Retained<NSArray<ProtocolObject<dyn NSFetchedResultsSectionInfo>>>>
pub unsafe fn sectionForSectionIndexTitle_atIndex( &self, title: &NSString, section_index: NSInteger ) -> NSInteger
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<ResultType: ?Sized + Message> AsMut<AnyObject> for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> AsMut<AnyObject> for NSFetchedResultsController<ResultType>
source§impl<ResultType: ?Sized + Message> AsMut<NSFetchedResultsController<ResultType>> for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> AsMut<NSFetchedResultsController<ResultType>> for NSFetchedResultsController<ResultType>
source§impl<ResultType: ?Sized + Message> AsMut<NSObject> for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> AsMut<NSObject> for NSFetchedResultsController<ResultType>
source§impl<ResultType: ?Sized + Message> AsRef<AnyObject> for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> AsRef<AnyObject> for NSFetchedResultsController<ResultType>
source§impl<ResultType: ?Sized + Message> AsRef<NSFetchedResultsController<ResultType>> for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> AsRef<NSFetchedResultsController<ResultType>> for NSFetchedResultsController<ResultType>
source§impl<ResultType: ?Sized + Message> AsRef<NSObject> for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> AsRef<NSObject> for NSFetchedResultsController<ResultType>
source§impl<ResultType: ?Sized + Message> Borrow<AnyObject> for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> Borrow<AnyObject> for NSFetchedResultsController<ResultType>
source§impl<ResultType: ?Sized + Message> Borrow<NSObject> for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> Borrow<NSObject> for NSFetchedResultsController<ResultType>
source§impl<ResultType: ?Sized + Message> BorrowMut<AnyObject> for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> BorrowMut<AnyObject> for NSFetchedResultsController<ResultType>
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<ResultType: ?Sized + Message> BorrowMut<NSObject> for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> BorrowMut<NSObject> for NSFetchedResultsController<ResultType>
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<ResultType: ?Sized + Message> ClassType for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> ClassType for NSFetchedResultsController<ResultType>
§type Mutability = InteriorMutable
type Mutability = InteriorMutable
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSFetchedResultsController"
const NAME: &'static str = "NSFetchedResultsController"
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<ResultType: PartialEq + ?Sized> PartialEq for NSFetchedResultsController<ResultType>
impl<ResultType: PartialEq + ?Sized> PartialEq for NSFetchedResultsController<ResultType>
source§fn eq(&self, other: &NSFetchedResultsController<ResultType>) -> bool
fn eq(&self, other: &NSFetchedResultsController<ResultType>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<ResultType: ?Sized + Message> RefEncode for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> RefEncode for NSFetchedResultsController<ResultType>
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<ResultType: Eq + ?Sized> Eq for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized + Message> Message for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized> NSObjectProtocol for NSFetchedResultsController<ResultType>
impl<ResultType: ?Sized> StructuralPartialEq for NSFetchedResultsController<ResultType>
Auto Trait Implementations§
impl<ResultType = AnyObject> !Freeze for NSFetchedResultsController<ResultType>
impl<ResultType = AnyObject> !RefUnwindSafe for NSFetchedResultsController<ResultType>
impl<ResultType = AnyObject> !Send for NSFetchedResultsController<ResultType>
impl<ResultType = AnyObject> !Sync for NSFetchedResultsController<ResultType>
impl<ResultType = AnyObject> !Unpin for NSFetchedResultsController<ResultType>
impl<ResultType = AnyObject> !UnwindSafe for NSFetchedResultsController<ResultType>
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