This line could be

```rust
let version_ok = vec::raw::buf_as_slice(cvbuf, minsz,
                                        |buf0| buf0 == encoder::metadata_encoding_version);
```