Skip to main content

translate

Macro translate 

Source
macro_rules! translate {
    ($target:expr, $value:expr, $map:expr, $(($method:ident, $ty:ty)),* $(,)?) => { ... };
}
Expand description

Used to translate serde_json::Value into DataPack<T>. This macro avoids writing a lot of duplicate code.