pub fn encode(index: &AnnIndex) -> Vec<u8> ⓘ
Encode everything but the vectors. The output is the segment BODY; the storage layer wraps it in its header (fingerprint, config hash, counts).