[][src]Struct mercurius::Before

#[must_use = "iterators are lazy and do nothing unless consumed"]pub struct Before<I, S, G, F, P, T> where
    I: Iterator<Item = T>,
    S: Iterator<Item = T>,
    G: IntoIterator<Item = T, IntoIter = S>,
    F: Fn(Ref<Option<FrontMatter>>) -> G,
    P: Fn(&T) -> bool
{ /* fields omitted */ }

An iterator places events before the first occurence of certain event.

This struct is created by before method on MarkdownExt.

Implementations

impl<I, S, G, F, P, T> Before<I, S, G, F, P, T> where
    I: Iterator<Item = T>,
    S: Iterator<Item = T>,
    G: IntoIterator<Item = T, IntoIter = S>,
    F: Fn(Ref<Option<FrontMatter>>) -> G,
    P: Fn(&T) -> bool
[src]

pub fn new(
    frontmatter: Share<RefCell<Option<FrontMatter>>>,
    iter: I,
    before: P,
    f: F
) -> Self
[src]

Constructs a new Before.

Trait Implementations

impl<I, S, G, F, P, T> Iterator for Before<I, S, G, F, P, T> where
    I: Iterator<Item = T>,
    S: Iterator<Item = T>,
    G: IntoIterator<Item = T, IntoIter = S>,
    F: Fn(Ref<Option<FrontMatter>>) -> G,
    P: Fn(&T) -> bool
[src]

type Item = I::Item

The type of the elements being iterated over.

impl<I, S, G, F, P, T> MarkdownExt<T> for Before<I, S, G, F, P, T> where
    I: Iterator<Item = T>,
    S: Iterator<Item = T>,
    G: IntoIterator<Item = T, IntoIter = S>,
    F: Fn(Ref<Option<FrontMatter>>) -> G,
    P: Fn(&T) -> bool
[src]

Auto Trait Implementations

impl<I, S, G, F, P, T> !RefUnwindSafe for Before<I, S, G, F, P, T>

impl<I, S, G, F, P, T> !Send for Before<I, S, G, F, P, T>

impl<I, S, G, F, P, T> !Sync for Before<I, S, G, F, P, T>

impl<I, S, G, F, P, T> Unpin for Before<I, S, G, F, P, T> where
    F: Unpin,
    I: Unpin,
    P: Unpin,
    S: Unpin,
    T: Unpin

impl<I, S, G, F, P, T> !UnwindSafe for Before<I, S, G, F, P, T>

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.