Right now, Value::Blob requires a Vec<u8>. I would like to be able to use it with [u8; N] for things like UUIDs. When combined with something like rarray, the number of heap allocations required to build an Array of Value::Blob gets quite high.
It should be possible to make Value generic over some B: AsRef<[u8]>. I understand this would be somewhat limited, as you still can't have more than one type of B when using Array or any other collection of Value<B>. But it would at least be more flexible than what we have now.
Right now,
Value::Blobrequires aVec<u8>. I would like to be able to use it with[u8; N]for things like UUIDs. When combined with something likerarray, the number of heap allocations required to build anArrayofValue::Blobgets quite high.It should be possible to make
Valuegeneric over someB: AsRef<[u8]>. I understand this would be somewhat limited, as you still can't have more than one type ofBwhen usingArrayor any other collection ofValue<B>. But it would at least be more flexible than what we have now.