[][src]Macro cookie_factory::gen_at_offset

macro_rules! gen_at_offset {
    (($i:expr, $idx:expr), $offset:expr, $f:ident( $($args:tt)* )) => { ... };
    (($i:expr, $idx:expr), $offset:expr, $submac:ident!( $($args:tt)* )) => { ... };
}

gen_at_offset!(usize, I -> Result<I,E>) => I -> Result<I,E> Combinator to call generator at an absolute offset.

Wraps another generator and calls it using a different index from the current position. If this combinator succeeds, it returns the current index (instead of the one returned by the child generator). If the child generator fails, returns the error.