pub fn end() -> AnchorEndExpand description
Match the end position of data.
Example
let rust = re::string("rust");
let year = neu::digit(10).repeat_times::<4>();
let end = re::end();
let mut ctx = CharsCtx::new("rust2023");
assert_eq!(ctx.try_mat(&rust)?, Span::new(0, 4));
assert_eq!(ctx.try_mat(&year)?, Span::new(4, 4));
assert_eq!(ctx.try_mat(&end)?, Span::new(8, 0));
Ok(())