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: trace_object.rs
    path of file: ./repos/cube/rust/cubestore/cubestore/src/metastore
    
    the code of the file until where you have to start completion: use super::{IndexId, RocksSecondaryIndex, TableId};
use crate::base_rocks_secondary_ind
    
    fn key_to_bytes(&self, key: &TraceObjectIndexKey) -> Vec<u8> {
        match key {
            TraceObjectIndexKey::ByTableId(table_id) => {
                let mut buf = Vec::with_capacity(8);
                buf.write_u64::<BigEndian>(*table_id).unwrap();
                buf
            }
        }
    }