You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Variant] Add Variant::as_object and Variant::as_list (#7755)
# Which issue does this PR close?
- part of #6736
# Rationale for this change
- While reviewing @friendlymatthew 's PR
#7740 I found that the code to
get the Variant object was awkward
I think that an accessor is similar to the existing `as_null`, `as_i32,`
etc APIs.
# What changes are included in this PR?
1. Add Variant::as_object and Variant::as_list
# Are there any user-facing changes?
New API (and docs with tests)
0 commit comments