pub fn set_from_slice(&mut self, key_slice: KeySlice) {
        self.0.clear();
        self.0.extend(key_slice.0);
        self.1 = key_slice.1;
    }
Set the key from a slice without re-allocating.
mini-lsm-mvcc/src/key.rs