This commit is contained in:
thiolliere
2020-01-29 13:26:09 +01:00
committed by GitHub
parent 3f9a05a0d3
commit f4fa59470a
@@ -433,6 +433,8 @@ where
}
}
/// The translation happens in-place, new keys are inserted at the same time as old keys are
/// removed, thus new keys must not collide with still remaining old keys.
fn translate<K2, V2, TK, TV>(translate_key: TK, translate_val: TV) -> Result<(), Option<K2>>
where K2: FullCodec + Clone, V2: Decode, TK: Fn(K2) -> K, TV: Fn(V2) -> V
{