Function keys::rewrite::rewrite_prefix_of_end_key [−][src]
pub fn rewrite_prefix_of_end_key(
old_prefix: &[u8],
new_prefix: &[u8],
src: &[u8]
) -> Result<Vec<u8>, WrongPrefix>
Rewrites the prefix of a byte array used as the end key.
Besides values supported by rewrite_prefix
, if the src is exactly the
successor of old_prefix
, this method will also return a Ok with the
successor of new_prefix
.