Functions in rust

How to write the function signature when the return type is nested vector of strings.

To return a vector of strings:

fn foo() -> Vec<String> { ... }

To return a vector of vectors of strings:

fn foo() -> Vec<Vec<String>> { ... }

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.