use crate::common::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSFetchIndexDescription;
unsafe impl ClassType for NSFetchIndexDescription {
type Super = NSObject;
}
);
extern_methods!(
unsafe impl NSFetchIndexDescription {
#[method_id(@__retain_semantics Init initWithName:elements:)]
pub unsafe fn initWithName_elements(
this: Option<Allocated<Self>>,
name: &NSString,
elements: Option<&NSArray<NSFetchIndexElementDescription>>,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Id<NSString, Shared>;
#[method(setName:)]
pub unsafe fn setName(&self, name: &NSString);
#[method_id(@__retain_semantics Other elements)]
pub unsafe fn elements(&self) -> Id<NSArray<NSFetchIndexElementDescription>, Shared>;
#[method(setElements:)]
pub unsafe fn setElements(&self, elements: &NSArray<NSFetchIndexElementDescription>);
#[method_id(@__retain_semantics Other entity)]
pub unsafe fn entity(&self) -> Option<Id<NSEntityDescription, Shared>>;
#[method_id(@__retain_semantics Other partialIndexPredicate)]
pub unsafe fn partialIndexPredicate(&self) -> Option<Id<NSPredicate, Shared>>;
#[method(setPartialIndexPredicate:)]
pub unsafe fn setPartialIndexPredicate(&self, partialIndexPredicate: Option<&NSPredicate>);
}
);