gtk-rs / gtk-rs-core

Rust bindings for GNOME libraries
https://gtk-rs.org/gtk-rs-core
MIT License
272 stars 103 forks source link

glib: Add unsafe `Value::into_send_value()` #1413

Closed sdroege closed 1 month ago

sdroege commented 1 month ago

This allows converting a Value into a SendValue without statically knowing its type but is unsafe because the caller needs to ensure the contained type is actually Send.

This is slightly safer than going through SendValue::unsafe_from(value.into_raw()).