Struct kaspa_database::prelude::DbKey
source · pub struct DbKey { /* private fields */ }Implementations§
source§impl DbKey
impl DbKey
pub fn new<TKey>(prefix: &[u8], key: TKey) -> Selfwhere TKey: Clone + AsRef<[u8]>,
pub fn prefix_only(prefix: &[u8]) -> Self
sourcepub fn add_bucket<TBucket>(&mut self, bucket: TBucket)where
TBucket: Copy + AsRef<[u8]>,
pub fn add_bucket<TBucket>(&mut self, bucket: TBucket)where TBucket: Copy + AsRef<[u8]>,
add a bucket to the DBkey, this adds to the prefix length