zenoh icon indicating copy to clipboard operation
zenoh copied to clipboard

Suggestion: `internal::Value` destructor into components.

Open Charles-Schleich opened this issue 1 year ago • 2 comments

Describe the feature

Once https://github.com/eclipse-zenoh/zenoh/pull/1119 lands, It May be useful to be able to destruct a Value into its payload and encoding, taking ownership of both upon destruction. Currently the only option is to take a reference to the payload and encoding, forcing a .clone() in circumstances where destructing would be preferred.

Charles-Schleich avatar Jun 12 '24 13:06 Charles-Schleich

Because Value becomes internal, it could also make sense to make its fields public.

wyfo avatar Jun 12 '24 14:06 wyfo

@Charles-Schleich can you submit a PR?

Mallets avatar Jun 13 '24 14:06 Mallets

Resolved by 1178

Charles-Schleich avatar Jul 10 '24 08:07 Charles-Schleich