Skip to main content

NSFastEnumeration

Trait NSFastEnumeration 

Source
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§

Source

unsafe fn countByEnumeratingWithState_objects_count( &self, state: NonNull<NSFastEnumerationState>, buffer: NonNull<*mut AnyObject>, len: NSUInteger, ) -> NSUInteger
where Self: Sized + Message,

§Safety
  • state must be a valid pointer.
  • buffer must be a valid pointer.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSFastEnumeration

Source§

impl ProtocolType for dyn NSFastEnumeration

Source§

const NAME: &'static str = "NSFastEnumeration"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSFastEnumeration for ProtocolObject<T>

Implementors§

Source§

impl NSFastEnumeration for NSPointerArray

Available on crate feature NSPointerArray only.
Source§

impl<KeyType: ?Sized, ObjectType: ?Sized> NSFastEnumeration for NSDictionary<KeyType, ObjectType>

Available on crate feature NSDictionary only.
Source§

impl<KeyType: ?Sized, ObjectType: ?Sized> NSFastEnumeration for NSMapTable<KeyType, ObjectType>

Available on crate feature NSMapTable only.
Source§

impl<KeyType: ?Sized, ObjectType: ?Sized> NSFastEnumeration for NSMutableDictionary<KeyType, ObjectType>

Available on crate feature NSDictionary only.
Source§

impl<ObjectType: ?Sized> NSFastEnumeration for NSArray<ObjectType>

Available on crate feature NSArray only.
Source§

impl<ObjectType: ?Sized> NSFastEnumeration for NSCountedSet<ObjectType>

Available on crate feature NSSet only.
Source§

impl<ObjectType: ?Sized> NSFastEnumeration for NSDirectoryEnumerator<ObjectType>

Available on crate feature NSFileManager only.
Source§

impl<ObjectType: ?Sized> NSFastEnumeration for NSEnumerator<ObjectType>

Source§

impl<ObjectType: ?Sized> NSFastEnumeration for NSHashTable<ObjectType>

Available on crate feature NSHashTable only.
Source§

impl<ObjectType: ?Sized> NSFastEnumeration for NSMutableArray<ObjectType>

Available on crate feature NSArray only.
Source§

impl<ObjectType: ?Sized> NSFastEnumeration for NSMutableOrderedSet<ObjectType>

Available on crate feature NSOrderedSet only.
Source§

impl<ObjectType: ?Sized> NSFastEnumeration for NSMutableSet<ObjectType>

Available on crate feature NSSet only.
Source§

impl<ObjectType: ?Sized> NSFastEnumeration for NSOrderedCollectionDifference<ObjectType>

Available on crate feature NSOrderedCollectionDifference only.
Source§

impl<ObjectType: ?Sized> NSFastEnumeration for NSOrderedSet<ObjectType>

Available on crate feature NSOrderedSet only.
Source§

impl<ObjectType: ?Sized> NSFastEnumeration for NSSet<ObjectType>

Available on crate feature NSSet only.