pub fn encode_segment_prefix(segment: impl AsRef<[u8]>) -> Vec<u8> ⓘ
Escape a partial segment without appending its terminator.
This is useful for prefix scans over the first segment of a composite key.