Skip to content

Get PropMap from RefArg #326

Answered by diwic
hpux735 asked this question in Q&A
Mar 27, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hmm, there might be more than one way depending on the actual signature of the signal's argument. Does this work?

let value = &args["contents"].0;
let map: &arg::PropMap = arg::cast(value)?;

If not, could you show the introspection XML (or some other information) about the signal?

Replies: 1 comment 1 reply

Comment options

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

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