Function take

Source
pub fn take(count: usize) -> Take
Expand description

take(x: usize) Constructs a parser that takes x items. For strings, this will be characters and for arrays it will be elements. This parser outputs a &str for an input of &str and a &[T] for an input of &[T]