[][src]Struct menugen::recfiltiter::MenuIter

pub struct MenuIter<'a, C, F> where
    C: Clone + Default,
    F: Fn(&MenuItem<C>) -> bool
{ /* fields omitted */ }

Implementations

impl<'a, C, F> MenuIter<'a, C, F> where
    C: Clone + Default,
    F: Fn(&MenuItem<C>) -> bool
[src]

pub fn new(menu: &'a Menu<C>, p: F) -> Self[src]

pub fn root_scope(&mut self) -> &mut Self[src]

Tell the iterator to scope the root items. By default the iterator will not generate scope events for the root elements.

Constraints

This setting must only be changed before iteration has started.

Trait Implementations

impl<'a, C, F> Iterator for MenuIter<'a, C, F> where
    C: Clone + Default,
    F: Fn(&MenuItem<C>) -> bool
[src]

type Item = Event<'a, C>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, C, F> RefUnwindSafe for MenuIter<'a, C, F> where
    C: RefUnwindSafe,
    F: RefUnwindSafe

impl<'a, C, F> Send for MenuIter<'a, C, F> where
    C: Sync,
    F: Send

impl<'a, C, F> Sync for MenuIter<'a, C, F> where
    C: Sync,
    F: Sync

impl<'a, C, F> Unpin for MenuIter<'a, C, F> where
    F: Unpin

impl<'a, C, F> UnwindSafe for MenuIter<'a, C, F> where
    C: RefUnwindSafe,
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.