pub fn encode_vector(vector: &Vector) -> Vec<u8> ⓘExpand description
Encode a VECTOR value into its image (the bytes that go inside the LOB
wrapper). Mirrors VectorEncoder.encode in vector.pyx.
§Panics
Panics if vector is not a valid VECTOR value (e.g. a sparse vector whose
index/value counts disagree or whose dimension exceeds the protocol limit).
This is the infallible convenience wrapper; callers that accept
caller-constructed (potentially invalid) vectors should use the crate-local
encode_vector_checked, which returns the error instead of panicking.