Function that accepts both &Vec and &Vec<&T> in Rust

前端 未结 0 1796
一向
一向 2020-12-30 04:14

In my struct I have a from function that takes a shared reference to a vector of elements of type T and does some initialisation.

fn         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题