take

Function take 

Source
pub fn take<'a, E>(n: usize) -> impl Pipe<&'a [u8], (&'a [u8],), E>
where Incomplete: Into<E>,
Expand description

Take n bytes from a slice