You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lod.rs
    path of file: ./repos/Egregoria/assets_gui/src
    
    the code of the file until where you have to start completion: use std::borrow::Cow;
use std::collections::BTreeMap;
use std::path::PathBuf;

use meshopt2::{optimize_vertex_fetch, SimplifyOptions, Vertex, VertexDataAdapter};

use common::unwrap_cont;
use engine::gltf::json::validatio
    
fn to_padded_byte_vector<T>(vec: Vec<T>) -> Vec<u8> {
    let byte_length = vec.len() * std::mem::size_of::<T>();
    let byte_capacity = vec.capacity() * std::mem::size_of::<T>();
    let alloc = vec.into_boxed_slice();
    let ptr = Box::<[T]>::into_raw(alloc) as *mut u8;
    let mut new_vec = unsafe { Vec::from_raw_parts(ptr, byte_length, byte_capacity) };
    while new_vec.len() % 4 != 0 {
        new_vec.push(0); // pad to multiple of four bytes
    }
    new_vec
}