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
I'm trying to use this for the SinkInfo<'a> in libpulse_binding (jnqnfe/pulse-binding-rust#44), but it has a field active_port: Option<Box<SinkPortInfo<'a>>>.
I guess to handle this, it would need to have logic to handle Boxes, like it handles Option, and FieldKind::resolve would have to be recursive to allow a Box inside an Option. I'm looking into how to implement this, since recursing in particular changes some things.
I guess it could also be helpful with complicated structs to have something like serde's deserialize_with to provide a custom into_owned for a field...
The text was updated successfully, but these errors were encountered:
I'm trying to use this for the
SinkInfo<'a>
in libpulse_binding (jnqnfe/pulse-binding-rust#44), but it has a fieldactive_port: Option<Box<SinkPortInfo<'a>>>
.I guess to handle this, it would need to have logic to handle
Box
es, like it handlesOption
, andFieldKind::resolve
would have to be recursive to allow aBox
inside anOption
. I'm looking into how to implement this, since recursing in particular changes some things.I guess it could also be helpful with complicated structs to have something like serde's
deserialize_with
to provide a custominto_owned
for a field...The text was updated successfully, but these errors were encountered: