It provides a way of getting the ownership of the inner Vec. It saves one clone when we need the ownership of the data.
An alternative is to implement From<Key> and From<Value> for Vec<u8>. But I prefer the into_inner way.
By the way, is [u8] a better choice for the deref target of Key and Value? [u8] is just a more common deref target in the Rust world. Vec is ok but less comfortable to me and does no good too (I think no one cares about the only addition capacity). This is really of no significance, so I do not open a new issue.
It provides a way of getting the ownership of the inner Vec. It saves one clone when we need the ownership of the data.
An alternative is to implement
From<Key>andFrom<Value>forVec<u8>. But I prefer theinto_innerway.By the way, is
[u8]a better choice for the deref target ofKeyandValue?[u8]is just a more common deref target in the Rust world.Vecis ok but less comfortable to me and does no good too (I think no one cares about the only additioncapacity). This is really of no significance, so I do not open a new issue.