left_pad

Function left_pad 

Source
fn left_pad(input: &[u8], padded_len: usize) -> Result<Vec<u8>>
Expand description

Returns a new vector of the given length, with 0s left padded.