rust-x-bindings / rust-xcb

Rust bindings and wrapper for XCB.
MIT License
165 stars 64 forks source link

Add Connection.into_raw_conn #46

Closed valpackett closed 7 years ago

valpackett commented 7 years ago

When using rust-xcb to access an already existing xcb connection (for example, one from glutin), a way to avoid calling the destructor was needed. This pattern is similar to IntoRawFd from the standard library.

rtbo commented 7 years ago

yes good point. Thank you