pub(crate) fn pre_pad_vec(mut input: Vec<usize>, expected_size: usize) -> Vec<usize> {
    if input.len() == expected_size {
        return input;
    }

    let mut res = Vec::with_capacity(expected_size);
    res.resize(expected_size - input.len(), 0);
    res.append(&mut input);
    res
}
/// Prepend zeros to the given vector until its size matches `expected_size`.
Prepend zeros to the given vector until its size matches `expected_size`.
Prepend zeros to the given vector until its size matches ` expected_size ` .
pub(crate) fn pre_pad_vec(mut input: Vec<usize>, expected_size: usize) -> Vec<usize> {
    if input.len() == expected_size {
        return input;
    }
    let mut res = Vec::with_capacity(expected_size);
    res.resize(expected_size - input.len(), 0);
    res.append(&mut input);
    res
}
pub ( crate ) fn pre_pad_vec ( mut input : Vec < usize > , expected_size : usize ) -> Vec < usize > { if input . len ( ) == expected_size { return input ; } let mut res = Vec :: with_capacity ( expected_size ) ; res . resize ( expected_size - input . len ( ) , 0 ) ; res . append ( & mut input ) ; res }
Prepend zeros to the given vector until its size matches `expected_size`.
Prepend zeros to the given vector until its size matches ` expected_size ` .
input
Vec<usize>
expected_size
usize