Comment on Return Generic Type in Rust

I_like_cats@lemmy.one ⁨8⁩ ⁨months⁩ ago

No. You can only return a single type from the function. You could return the serde_json::Value though so that the code calling this function can get the value it needs itself

source
Sort:hotnewtop