Skip to content
Discussion options

You must be logged in to vote

As a basic idea:

let variant = propmap.get("key").unwrap();
let v: Vec<&str> = variant.0.as_iter().map(|x| x.as_str().unwrap()).collect();

Adjust as necessary if you don't want unwraps or don't want keys and values interleaved, but this should get you started.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tulkas59
Comment options

Answer selected by Tulkas59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants