Skip to main content

on_key

Function on_key 

Source
pub fn on_key(top: impl AsRef<[u8]>, on: u64, sep: Option<[u8; 1]>) -> Vec<u8> ⓘ
Expand description

Returns key formed by joining top key and hex str conversion of int ordinal number on with sep character.

§Parameters

  • top - top key prefix to be joined with hex version of on using sep
  • on - ordinal number to be converted to 32 hex bytes
  • sep - separator character for join (default is b’.’)

§Returns

  • Vec<u8> - key formed by joining top key and hex str conversion of on