pub fn remove_children<
	K: Eq + Hash + Clone + Encode + Decode,
>(
	tx: &mut DBTransaction,
	column: Option<u32>,
	prefix: &[u8],
	parent_hash: K,
) {
	let mut key = prefix.to_vec();
	parent_hash.using_encoded(|s| key.extend(s));
	tx.delete(column, &key[..]);
}
/// Prepare transaction to remove the children of `parent_hash`.
Prepare transaction to remove the children of `parent_hash`.
Prepare transaction to remove the children of ` parent_hash ` .
pub fn remove_children<
	K: Eq + Hash + Clone + Encode + Decode,
>(
	tx: &mut DBTransaction,
	column: Option<u32>,
	prefix: &[u8],
	parent_hash: K,
) {
	let mut key = prefix.to_vec();
	parent_hash.using_encoded(|s| key.extend(s));
	tx.delete(column, &key[..]);
}
pub fn remove_children < K : Eq + Hash + Clone + Encode + Decode , > ( tx : & mut DBTransaction , column : Option < u32 > , prefix : & [ u8 ] , parent_hash : K , ) { let mut key = prefix . to_vec ( ) ; parent_hash . using_encoded ( | s | key . extend ( s ) ) ; tx . delete ( column , & key [ .. ] ) ; }
Prepare transaction to remove the children of `parent_hash`.
Prepare transaction to remove the children of ` parent_hash ` .
tx
&mut DBTransaction
column
Option<u32>
prefix
&[u8]
parent_hash
K
tx
&mut DBTransaction
column
Option<u32>
prefix
&[u8]
parent_hash
K