Skip to content
Snippets Groups Projects
Commit f4fa5947 authored by thiolliere's avatar thiolliere Committed by GitHub
Browse files

doc (#4761)

parent 3f9a05a0
No related merge requests found
......@@ -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
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment