pub fn one_more<'a, C, N>(re: N) -> NeureOneMore<C, N, C::Item, NullCond>where
N: Neu<C::Item>,
C: Context<'a>,Expand description
Match at least one item.
Example
let num = re::one_more('0'..='9');
let mut ctx = CharsCtx::new("2048mb");
assert_eq!(ctx.try_mat(&num)?, Span::new(0, 4));
let mut ctx = CharsCtx::new("rust2021");
assert!(ctx.try_mat(&num).is_err());
Ok(())