Function neure::re::null

source ·
pub fn null<R>() -> NullRegex<R>
Expand description

Match nothing, simple return R::from(_, (0, 0)).

Example

    let null = re::null();
    let mut ctx = CharsCtx::new("aabbccgg");

    assert_eq!(ctx.try_mat(&null)?, Span::new(0, 0));

    Ok(())