pub enum iter<T> {
    __Phantom(iter<T>),
    iter,
}Expand description
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.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for iter<T>where T: RefUnwindSafe,
impl<T> Send for iter<T>where T: Send,
impl<T> Sync for iter<T>where T: Sync,
impl<T> Unpin for iter<T>
impl<T> UnwindSafe for iter<T>where T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more