pub unsafe trait NSFastEnumeration {
// Provided method
unsafe fn countByEnumeratingWithState_objects_count(
&self,
state: NonNull<NSFastEnumerationState>,
buffer: NonNull<*mut AnyObject>,
len: NSUInteger,
) -> NSUInteger
where Self: Sized + Message { ... }
}Available on crate feature
NSEnumerator only.Expand description
Provided Methods§
Sourceunsafe fn countByEnumeratingWithState_objects_count(
&self,
state: NonNull<NSFastEnumerationState>,
buffer: NonNull<*mut AnyObject>,
len: NSUInteger,
) -> NSUInteger
unsafe fn countByEnumeratingWithState_objects_count( &self, state: NonNull<NSFastEnumerationState>, buffer: NonNull<*mut AnyObject>, len: NSUInteger, ) -> NSUInteger
§Safety
statemust be a valid pointer.buffermust be a valid pointer.
Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSFastEnumeration
Source§impl ProtocolType for dyn NSFastEnumeration
impl ProtocolType for dyn NSFastEnumeration
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl<T> NSFastEnumeration for ProtocolObject<T>where
T: ?Sized + NSFastEnumeration,
Implementors§
impl NSFastEnumeration for NSPointerArray
Available on crate feature
NSPointerArray only.impl<KeyType: ?Sized, ObjectType: ?Sized> NSFastEnumeration for NSDictionary<KeyType, ObjectType>
Available on crate feature
NSDictionary only.impl<KeyType: ?Sized, ObjectType: ?Sized> NSFastEnumeration for NSMapTable<KeyType, ObjectType>
Available on crate feature
NSMapTable only.impl<KeyType: ?Sized, ObjectType: ?Sized> NSFastEnumeration for NSMutableDictionary<KeyType, ObjectType>
Available on crate feature
NSDictionary only.impl<ObjectType: ?Sized> NSFastEnumeration for NSArray<ObjectType>
Available on crate feature
NSArray only.impl<ObjectType: ?Sized> NSFastEnumeration for NSCountedSet<ObjectType>
Available on crate feature
NSSet only.impl<ObjectType: ?Sized> NSFastEnumeration for NSDirectoryEnumerator<ObjectType>
Available on crate feature
NSFileManager only.impl<ObjectType: ?Sized> NSFastEnumeration for NSEnumerator<ObjectType>
impl<ObjectType: ?Sized> NSFastEnumeration for NSHashTable<ObjectType>
Available on crate feature
NSHashTable only.impl<ObjectType: ?Sized> NSFastEnumeration for NSMutableArray<ObjectType>
Available on crate feature
NSArray only.impl<ObjectType: ?Sized> NSFastEnumeration for NSMutableOrderedSet<ObjectType>
Available on crate feature
NSOrderedSet only.impl<ObjectType: ?Sized> NSFastEnumeration for NSMutableSet<ObjectType>
Available on crate feature
NSSet only.impl<ObjectType: ?Sized> NSFastEnumeration for NSOrderedCollectionDifference<ObjectType>
Available on crate feature
NSOrderedCollectionDifference only.impl<ObjectType: ?Sized> NSFastEnumeration for NSOrderedSet<ObjectType>
Available on crate feature
NSOrderedSet only.impl<ObjectType: ?Sized> NSFastEnumeration for NSSet<ObjectType>
Available on crate feature
NSSet only.