pub fn check_binary_vector_value(
value: &Value,
dimensions: usize,
) -> Result<(), VectorDimError>Expand description
Validates a value against a declared BinaryVector(dimensions) column.
The binary-vector companion to check_dense_vector_value: dimensions is
the number of u8 lanes. Accepts a Value::BinaryVector
of exactly that many bytes, or the literal input form — a
Value::List of exactly that many integers each
in [0, 255] (coerced to bytes by the write path).
Value::Null passes.
§Errors
Returns VectorDimError::WrongLength on a lane-count mismatch,
VectorDimError::NonNumericElement if a list element is not an integer in
[0, 255], or VectorDimError::NotAVector for any other value.