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: vertex_array_helper.rs
    path of file: ./repos/bracket-lib/bracket-terminal/src/hal/webgpu/backing
    
    the code of the file until where you have to start completion: //! Provides a wrapper for wgpu vertex buffers, including attribute mapping.
use crate::hal::WgpuLink;
use wgpu::util::DeviceExt;

/// Maps a vector to a wgpu buffer.
pub struct FloatBuffer<T>
where
    T: bytemuck::Pod,
{
    /// The underlying buffer data
    pub data: Vec<T>,
    /// A map of attribute types represented by this buffer
    pub attribute
    
    pub fn build(&mut self, wgpu: &WgpuLink) {
        if let Some(buf) = &mut self.buffer {
            std::mem::drop(buf);
        }
        self.buffer = Some(
            wgpu.device
                .create_buffer_init(&wgpu::util::BufferInitDescriptor {
                    label: None,
                    contents: bytemuck::cast_slice(&self.data),
                    usage: self.usage,
                }),
        );
    }