# inventory::iter - Rust
An iterator over plugins registered of a given type.
Keywords: rust, rustlang, rust-lang, iter

# Type Definition inventory::iter [−] [src]

    type iter<T> = iter<T>;

An iterator over plugins registered of a given type.

The value `inventory::iter::<T>` is an iterator with element type `&'static T`.

There is no guarantee about the order that plugins of the same type are visited by the iterator. They may be visited in any order.

# Examples

    use my_flags::Flag;

    fn main() {
        for flag in inventory::iter::<Flag> {
            println!("-{}, --{}", flag.short, flag.name);
        }
    }

Refer to the crate level documentation for a complete example of instantiating a plugin registry and submitting plugins.

## Trait Implementations

### `impl<T: Collect> IntoIterator for iter<T>` [src]

#### `type Item = &'static T`

The type of the elements being iterated over.

#### `type IntoIter = Iter<T>`

Which kind of iterator are we turning this into?

#### `fn into_iter(self) -> Self::IntoIter` [src]

Creates an iterator from a value. Read more