Skip to content

Empty array of a very specific type? #361

Answered by diwic
diggyk asked this question in Q&A
Discussion options

You must be logged in to vote

How about:

let x: Vec<(String, Vec<(String, Variant)>)> = vec!();

...then you can do whatever you want to do with x, e g use it in message.append1(x) or Message::call_with_args.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by diggyk
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