use crate::common::*;
use crate::Foundation::*;
__inner_extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSOrderedSet<ObjectType: Message = Object, ObjectTypeOwnership: Ownership = Shared> {
_inner0: PhantomData<*mut (ObjectType, ObjectTypeOwnership)>,
notunwindsafe: PhantomData<&'static mut ()>,
}
unsafe impl<ObjectType: Message, ObjectTypeOwnership: Ownership> ClassType
for NSOrderedSet<ObjectType, ObjectTypeOwnership>
{
type Super = NSObject;
}
);
extern_methods!(
unsafe impl<ObjectType: Message, ObjectTypeOwnership: Ownership>
NSOrderedSet<ObjectType, ObjectTypeOwnership>
{
#[method(count)]
pub unsafe fn count(&self) -> NSUInteger;
#[method_id(@__retain_semantics Other objectAtIndex:)]
pub unsafe fn objectAtIndex(&self, idx: NSUInteger) -> Id<ObjectType, Shared>;
#[method(indexOfObject:)]
pub unsafe fn indexOfObject(&self, object: &ObjectType) -> NSUInteger;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithObjects:count:)]
pub unsafe fn initWithObjects_count(
this: Option<Allocated<Self>>,
objects: *mut NonNull<ObjectType>,
cnt: NSUInteger,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(
this: Option<Allocated<Self>>,
coder: &NSCoder,
) -> Option<Id<Self, Shared>>;
}
);
extern_methods!(
unsafe impl<ObjectType: Message, ObjectTypeOwnership: Ownership>
NSOrderedSet<ObjectType, ObjectTypeOwnership>
{
#[method(getObjects:range:)]
pub unsafe fn getObjects_range(&self, objects: *mut NonNull<ObjectType>, range: NSRange);
#[method_id(@__retain_semantics Other objectsAtIndexes:)]
pub unsafe fn objectsAtIndexes(
&self,
indexes: &NSIndexSet,
) -> Id<NSArray<ObjectType>, Shared>;
#[method_id(@__retain_semantics Other firstObject)]
pub unsafe fn firstObject(&self) -> Option<Id<ObjectType, Shared>>;
#[method_id(@__retain_semantics Other lastObject)]
pub unsafe fn lastObject(&self) -> Option<Id<ObjectType, Shared>>;
#[method(isEqualToOrderedSet:)]
pub unsafe fn isEqualToOrderedSet(&self, other: &NSOrderedSet<ObjectType>) -> bool;
#[method(containsObject:)]
pub unsafe fn containsObject(&self, object: &ObjectType) -> bool;
#[method(intersectsOrderedSet:)]
pub unsafe fn intersectsOrderedSet(&self, other: &NSOrderedSet<ObjectType>) -> bool;
#[method(intersectsSet:)]
pub unsafe fn intersectsSet(&self, set: &NSSet<ObjectType>) -> bool;
#[method(isSubsetOfOrderedSet:)]
pub unsafe fn isSubsetOfOrderedSet(&self, other: &NSOrderedSet<ObjectType>) -> bool;
#[method(isSubsetOfSet:)]
pub unsafe fn isSubsetOfSet(&self, set: &NSSet<ObjectType>) -> bool;
#[method_id(@__retain_semantics Other objectAtIndexedSubscript:)]
pub unsafe fn objectAtIndexedSubscript(&self, idx: NSUInteger) -> Id<ObjectType, Shared>;
#[method_id(@__retain_semantics Other objectEnumerator)]
pub unsafe fn objectEnumerator(&self) -> Id<NSEnumerator<ObjectType>, Shared>;
#[method_id(@__retain_semantics Other reverseObjectEnumerator)]
pub unsafe fn reverseObjectEnumerator(&self) -> Id<NSEnumerator<ObjectType>, Shared>;
#[method_id(@__retain_semantics Other reversedOrderedSet)]
pub unsafe fn reversedOrderedSet(&self) -> Id<NSOrderedSet<ObjectType>, Shared>;
#[method_id(@__retain_semantics Other array)]
pub unsafe fn array(&self) -> Id<NSArray<ObjectType>, Shared>;
#[method_id(@__retain_semantics Other set)]
pub unsafe fn set(&self) -> Id<NSSet<ObjectType>, Shared>;
#[method(enumerateObjectsUsingBlock:)]
pub unsafe fn enumerateObjectsUsingBlock(
&self,
block: &Block<(NonNull<ObjectType>, NSUInteger, NonNull<Bool>), ()>,
);
#[method(enumerateObjectsWithOptions:usingBlock:)]
pub unsafe fn enumerateObjectsWithOptions_usingBlock(
&self,
opts: NSEnumerationOptions,
block: &Block<(NonNull<ObjectType>, NSUInteger, NonNull<Bool>), ()>,
);
#[method(enumerateObjectsAtIndexes:options:usingBlock:)]
pub unsafe fn enumerateObjectsAtIndexes_options_usingBlock(
&self,
s: &NSIndexSet,
opts: NSEnumerationOptions,
block: &Block<(NonNull<ObjectType>, NSUInteger, NonNull<Bool>), ()>,
);
#[method(indexOfObjectPassingTest:)]
pub unsafe fn indexOfObjectPassingTest(
&self,
predicate: &Block<(NonNull<ObjectType>, NSUInteger, NonNull<Bool>), Bool>,
) -> NSUInteger;
#[method(indexOfObjectWithOptions:passingTest:)]
pub unsafe fn indexOfObjectWithOptions_passingTest(
&self,
opts: NSEnumerationOptions,
predicate: &Block<(NonNull<ObjectType>, NSUInteger, NonNull<Bool>), Bool>,
) -> NSUInteger;
#[method(indexOfObjectAtIndexes:options:passingTest:)]
pub unsafe fn indexOfObjectAtIndexes_options_passingTest(
&self,
s: &NSIndexSet,
opts: NSEnumerationOptions,
predicate: &Block<(NonNull<ObjectType>, NSUInteger, NonNull<Bool>), Bool>,
) -> NSUInteger;
#[method_id(@__retain_semantics Other indexesOfObjectsPassingTest:)]
pub unsafe fn indexesOfObjectsPassingTest(
&self,
predicate: &Block<(NonNull<ObjectType>, NSUInteger, NonNull<Bool>), Bool>,
) -> Id<NSIndexSet, Shared>;
#[method_id(@__retain_semantics Other indexesOfObjectsWithOptions:passingTest:)]
pub unsafe fn indexesOfObjectsWithOptions_passingTest(
&self,
opts: NSEnumerationOptions,
predicate: &Block<(NonNull<ObjectType>, NSUInteger, NonNull<Bool>), Bool>,
) -> Id<NSIndexSet, Shared>;
#[method_id(@__retain_semantics Other indexesOfObjectsAtIndexes:options:passingTest:)]
pub unsafe fn indexesOfObjectsAtIndexes_options_passingTest(
&self,
s: &NSIndexSet,
opts: NSEnumerationOptions,
predicate: &Block<(NonNull<ObjectType>, NSUInteger, NonNull<Bool>), Bool>,
) -> Id<NSIndexSet, Shared>;
#[method(indexOfObject:inSortedRange:options:usingComparator:)]
pub unsafe fn indexOfObject_inSortedRange_options_usingComparator(
&self,
object: &ObjectType,
range: NSRange,
opts: NSBinarySearchingOptions,
cmp: NSComparator,
) -> NSUInteger;
#[method_id(@__retain_semantics Other sortedArrayUsingComparator:)]
pub unsafe fn sortedArrayUsingComparator(
&self,
cmptr: NSComparator,
) -> Id<NSArray<ObjectType>, Shared>;
#[method_id(@__retain_semantics Other sortedArrayWithOptions:usingComparator:)]
pub unsafe fn sortedArrayWithOptions_usingComparator(
&self,
opts: NSSortOptions,
cmptr: NSComparator,
) -> Id<NSArray<ObjectType>, Shared>;
#[method_id(@__retain_semantics Other description)]
pub unsafe fn description(&self) -> Id<NSString, Shared>;
#[method_id(@__retain_semantics Other descriptionWithLocale:)]
pub unsafe fn descriptionWithLocale(&self, locale: Option<&Object>)
-> Id<NSString, Shared>;
#[method_id(@__retain_semantics Other descriptionWithLocale:indent:)]
pub unsafe fn descriptionWithLocale_indent(
&self,
locale: Option<&Object>,
level: NSUInteger,
) -> Id<NSString, Shared>;
}
);
extern_methods!(
unsafe impl<ObjectType: Message, ObjectTypeOwnership: Ownership>
NSOrderedSet<ObjectType, ObjectTypeOwnership>
{
#[method_id(@__retain_semantics Other orderedSet)]
pub unsafe fn orderedSet() -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other orderedSetWithObject:)]
pub unsafe fn orderedSetWithObject(object: &ObjectType) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other orderedSetWithObjects:count:)]
pub unsafe fn orderedSetWithObjects_count(
objects: NonNull<NonNull<ObjectType>>,
cnt: NSUInteger,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other orderedSetWithOrderedSet:)]
pub unsafe fn orderedSetWithOrderedSet(set: &NSOrderedSet<ObjectType>) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other orderedSetWithOrderedSet:range:copyItems:)]
pub unsafe fn orderedSetWithOrderedSet_range_copyItems(
set: &NSOrderedSet<ObjectType>,
range: NSRange,
flag: bool,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other orderedSetWithArray:)]
pub unsafe fn orderedSetWithArray(array: &NSArray<ObjectType>) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other orderedSetWithArray:range:copyItems:)]
pub unsafe fn orderedSetWithArray_range_copyItems(
array: &NSArray<ObjectType>,
range: NSRange,
flag: bool,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other orderedSetWithSet:)]
pub unsafe fn orderedSetWithSet(set: &NSSet<ObjectType>) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Other orderedSetWithSet:copyItems:)]
pub unsafe fn orderedSetWithSet_copyItems(
set: &NSSet<ObjectType>,
flag: bool,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithObject:)]
pub unsafe fn initWithObject(
this: Option<Allocated<Self>>,
object: &ObjectType,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithOrderedSet:)]
pub unsafe fn initWithOrderedSet(
this: Option<Allocated<Self>>,
set: &NSOrderedSet<ObjectType>,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithOrderedSet:copyItems:)]
pub unsafe fn initWithOrderedSet_copyItems(
this: Option<Allocated<Self>>,
set: &NSOrderedSet<ObjectType>,
flag: bool,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithOrderedSet:range:copyItems:)]
pub unsafe fn initWithOrderedSet_range_copyItems(
this: Option<Allocated<Self>>,
set: &NSOrderedSet<ObjectType>,
range: NSRange,
flag: bool,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithArray:)]
pub unsafe fn initWithArray(
this: Option<Allocated<Self>>,
array: &NSArray<ObjectType>,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithArray:copyItems:)]
pub unsafe fn initWithArray_copyItems(
this: Option<Allocated<Self>>,
set: &NSArray<ObjectType>,
flag: bool,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithArray:range:copyItems:)]
pub unsafe fn initWithArray_range_copyItems(
this: Option<Allocated<Self>>,
set: &NSArray<ObjectType>,
range: NSRange,
flag: bool,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithSet:)]
pub unsafe fn initWithSet(
this: Option<Allocated<Self>>,
set: &NSSet<ObjectType>,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithSet:copyItems:)]
pub unsafe fn initWithSet_copyItems(
this: Option<Allocated<Self>>,
set: &NSSet<ObjectType>,
flag: bool,
) -> Id<Self, Shared>;
}
);
extern_methods!(
unsafe impl<ObjectType: Message, ObjectTypeOwnership: Ownership>
NSOrderedSet<ObjectType, ObjectTypeOwnership>
{
#[method_id(@__retain_semantics Other differenceFromOrderedSet:withOptions:usingEquivalenceTest:)]
pub unsafe fn differenceFromOrderedSet_withOptions_usingEquivalenceTest(
&self,
other: &NSOrderedSet<ObjectType>,
options: NSOrderedCollectionDifferenceCalculationOptions,
block: &Block<(NonNull<ObjectType>, NonNull<ObjectType>), Bool>,
) -> Id<NSOrderedCollectionDifference<ObjectType>, Shared>;
#[method_id(@__retain_semantics Other differenceFromOrderedSet:withOptions:)]
pub unsafe fn differenceFromOrderedSet_withOptions(
&self,
other: &NSOrderedSet<ObjectType>,
options: NSOrderedCollectionDifferenceCalculationOptions,
) -> Id<NSOrderedCollectionDifference<ObjectType>, Shared>;
#[method_id(@__retain_semantics Other differenceFromOrderedSet:)]
pub unsafe fn differenceFromOrderedSet(
&self,
other: &NSOrderedSet<ObjectType>,
) -> Id<NSOrderedCollectionDifference<ObjectType>, Shared>;
#[method_id(@__retain_semantics Other orderedSetByApplyingDifference:)]
pub unsafe fn orderedSetByApplyingDifference(
&self,
difference: &NSOrderedCollectionDifference<ObjectType>,
) -> Option<Id<NSOrderedSet<ObjectType>, Shared>>;
}
);
__inner_extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSMutableOrderedSet<
ObjectType: Message = Object,
ObjectTypeOwnership: Ownership = Shared,
> {
_inner0: PhantomData<*mut (ObjectType, ObjectTypeOwnership)>,
notunwindsafe: PhantomData<&'static mut ()>,
}
unsafe impl<ObjectType: Message, ObjectTypeOwnership: Ownership> ClassType
for NSMutableOrderedSet<ObjectType, ObjectTypeOwnership>
{
#[inherits(NSObject)]
type Super = NSOrderedSet<ObjectType, ObjectTypeOwnership>;
}
);
extern_methods!(
unsafe impl<ObjectType: Message, ObjectTypeOwnership: Ownership>
NSMutableOrderedSet<ObjectType, ObjectTypeOwnership>
{
#[method(insertObject:atIndex:)]
pub unsafe fn insertObject_atIndex(&self, object: &ObjectType, idx: NSUInteger);
#[method(removeObjectAtIndex:)]
pub unsafe fn removeObjectAtIndex(&self, idx: NSUInteger);
#[method(replaceObjectAtIndex:withObject:)]
pub unsafe fn replaceObjectAtIndex_withObject(&self, idx: NSUInteger, object: &ObjectType);
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(
this: Option<Allocated<Self>>,
coder: &NSCoder,
) -> Option<Id<Self, Owned>>;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Init initWithCapacity:)]
pub unsafe fn initWithCapacity(
this: Option<Allocated<Self>>,
numItems: NSUInteger,
) -> Id<Self, Owned>;
}
);
extern_methods!(
unsafe impl<ObjectType: Message, ObjectTypeOwnership: Ownership>
NSMutableOrderedSet<ObjectType, ObjectTypeOwnership>
{
#[method(addObject:)]
pub unsafe fn addObject(&self, object: &ObjectType);
#[method(addObjects:count:)]
pub unsafe fn addObjects_count(&self, objects: *mut NonNull<ObjectType>, count: NSUInteger);
#[method(addObjectsFromArray:)]
pub unsafe fn addObjectsFromArray(&self, array: &NSArray<ObjectType>);
#[method(exchangeObjectAtIndex:withObjectAtIndex:)]
pub unsafe fn exchangeObjectAtIndex_withObjectAtIndex(
&self,
idx1: NSUInteger,
idx2: NSUInteger,
);
#[method(moveObjectsAtIndexes:toIndex:)]
pub unsafe fn moveObjectsAtIndexes_toIndex(&self, indexes: &NSIndexSet, idx: NSUInteger);
#[method(insertObjects:atIndexes:)]
pub unsafe fn insertObjects_atIndexes(
&self,
objects: &NSArray<ObjectType>,
indexes: &NSIndexSet,
);
#[method(setObject:atIndex:)]
pub unsafe fn setObject_atIndex(&self, obj: &ObjectType, idx: NSUInteger);
#[method(setObject:atIndexedSubscript:)]
pub unsafe fn setObject_atIndexedSubscript(&self, obj: &ObjectType, idx: NSUInteger);
#[method(replaceObjectsInRange:withObjects:count:)]
pub unsafe fn replaceObjectsInRange_withObjects_count(
&self,
range: NSRange,
objects: *mut NonNull<ObjectType>,
count: NSUInteger,
);
#[method(replaceObjectsAtIndexes:withObjects:)]
pub unsafe fn replaceObjectsAtIndexes_withObjects(
&self,
indexes: &NSIndexSet,
objects: &NSArray<ObjectType>,
);
#[method(removeObjectsInRange:)]
pub unsafe fn removeObjectsInRange(&self, range: NSRange);
#[method(removeObjectsAtIndexes:)]
pub unsafe fn removeObjectsAtIndexes(&self, indexes: &NSIndexSet);
#[method(removeAllObjects)]
pub unsafe fn removeAllObjects(&self);
#[method(removeObject:)]
pub unsafe fn removeObject(&self, object: &ObjectType);
#[method(removeObjectsInArray:)]
pub unsafe fn removeObjectsInArray(&self, array: &NSArray<ObjectType>);
#[method(intersectOrderedSet:)]
pub unsafe fn intersectOrderedSet(&self, other: &NSOrderedSet<ObjectType>);
#[method(minusOrderedSet:)]
pub unsafe fn minusOrderedSet(&self, other: &NSOrderedSet<ObjectType>);
#[method(unionOrderedSet:)]
pub unsafe fn unionOrderedSet(&self, other: &NSOrderedSet<ObjectType>);
#[method(intersectSet:)]
pub unsafe fn intersectSet(&self, other: &NSSet<ObjectType>);
#[method(minusSet:)]
pub unsafe fn minusSet(&self, other: &NSSet<ObjectType>);
#[method(unionSet:)]
pub unsafe fn unionSet(&self, other: &NSSet<ObjectType>);
#[method(sortUsingComparator:)]
pub unsafe fn sortUsingComparator(&self, cmptr: NSComparator);
#[method(sortWithOptions:usingComparator:)]
pub unsafe fn sortWithOptions_usingComparator(
&self,
opts: NSSortOptions,
cmptr: NSComparator,
);
#[method(sortRange:options:usingComparator:)]
pub unsafe fn sortRange_options_usingComparator(
&self,
range: NSRange,
opts: NSSortOptions,
cmptr: NSComparator,
);
}
);
extern_methods!(
unsafe impl<ObjectType: Message, ObjectTypeOwnership: Ownership>
NSMutableOrderedSet<ObjectType, ObjectTypeOwnership>
{
#[method_id(@__retain_semantics Other orderedSetWithCapacity:)]
pub unsafe fn orderedSetWithCapacity(numItems: NSUInteger) -> Id<Self, Owned>;
}
);
extern_methods!(
unsafe impl<ObjectType: Message, ObjectTypeOwnership: Ownership>
NSMutableOrderedSet<ObjectType, ObjectTypeOwnership>
{
#[method(applyDifference:)]
pub unsafe fn applyDifference(
&self,
difference: &NSOrderedCollectionDifference<ObjectType>,
);
}
);
extern_methods!(
unsafe impl<ObjectType: Message, ObjectTypeOwnership: Ownership>
NSMutableOrderedSet<ObjectType, ObjectTypeOwnership>
{
#[method_id(@__retain_semantics Init initWithObjects:count:)]
pub unsafe fn initWithObjects_count(
this: Option<Allocated<Self>>,
objects: *mut NonNull<ObjectType>,
cnt: NSUInteger,
) -> Id<Self, Owned>;
}
);
extern_methods!(
unsafe impl<ObjectType: Message, ObjectTypeOwnership: Ownership>
NSMutableOrderedSet<ObjectType, ObjectTypeOwnership>
{
#[method_id(@__retain_semantics Other orderedSet)]
pub unsafe fn orderedSet() -> Id<Self, Owned>;
#[method_id(@__retain_semantics Other orderedSetWithObject:)]
pub unsafe fn orderedSetWithObject(object: &ObjectType) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Other orderedSetWithObjects:count:)]
pub unsafe fn orderedSetWithObjects_count(
objects: NonNull<NonNull<ObjectType>>,
cnt: NSUInteger,
) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Other orderedSetWithOrderedSet:)]
pub unsafe fn orderedSetWithOrderedSet(set: &NSOrderedSet<ObjectType>) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Other orderedSetWithOrderedSet:range:copyItems:)]
pub unsafe fn orderedSetWithOrderedSet_range_copyItems(
set: &NSOrderedSet<ObjectType>,
range: NSRange,
flag: bool,
) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Other orderedSetWithArray:)]
pub unsafe fn orderedSetWithArray(array: &NSArray<ObjectType>) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Other orderedSetWithArray:range:copyItems:)]
pub unsafe fn orderedSetWithArray_range_copyItems(
array: &NSArray<ObjectType>,
range: NSRange,
flag: bool,
) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Other orderedSetWithSet:)]
pub unsafe fn orderedSetWithSet(set: &NSSet<ObjectType>) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Other orderedSetWithSet:copyItems:)]
pub unsafe fn orderedSetWithSet_copyItems(
set: &NSSet<ObjectType>,
flag: bool,
) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Init initWithObject:)]
pub unsafe fn initWithObject(
this: Option<Allocated<Self>>,
object: &ObjectType,
) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Init initWithOrderedSet:)]
pub unsafe fn initWithOrderedSet(
this: Option<Allocated<Self>>,
set: &NSOrderedSet<ObjectType>,
) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Init initWithOrderedSet:copyItems:)]
pub unsafe fn initWithOrderedSet_copyItems(
this: Option<Allocated<Self>>,
set: &NSOrderedSet<ObjectType>,
flag: bool,
) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Init initWithOrderedSet:range:copyItems:)]
pub unsafe fn initWithOrderedSet_range_copyItems(
this: Option<Allocated<Self>>,
set: &NSOrderedSet<ObjectType>,
range: NSRange,
flag: bool,
) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Init initWithArray:)]
pub unsafe fn initWithArray(
this: Option<Allocated<Self>>,
array: &NSArray<ObjectType>,
) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Init initWithArray:copyItems:)]
pub unsafe fn initWithArray_copyItems(
this: Option<Allocated<Self>>,
set: &NSArray<ObjectType>,
flag: bool,
) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Init initWithArray:range:copyItems:)]
pub unsafe fn initWithArray_range_copyItems(
this: Option<Allocated<Self>>,
set: &NSArray<ObjectType>,
range: NSRange,
flag: bool,
) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Init initWithSet:)]
pub unsafe fn initWithSet(
this: Option<Allocated<Self>>,
set: &NSSet<ObjectType>,
) -> Id<Self, Owned>;
#[method_id(@__retain_semantics Init initWithSet:copyItems:)]
pub unsafe fn initWithSet_copyItems(
this: Option<Allocated<Self>>,
set: &NSSet<ObjectType>,
flag: bool,
) -> Id<Self, Owned>;
}
);