There are some DisplayHandle and WindowHandle variants that are completely safe to construct. For instance:
- Most
DisplayHandles are just indicators of the currently running display system and don't involve any borrowed state.
- An
[Xlib/Xcb]DisplayHandle with a display of None can be constructed safely.
Win32WindowHandle, [Xlib/Xcb]WindowHandle and WASM web handles involve window IDs with no borrowed state.
It should be possible to construct these safely, with constructors on the safe types.
There are some
DisplayHandleandWindowHandlevariants that are completely safe to construct. For instance:DisplayHandles are just indicators of the currently running display system and don't involve any borrowed state.[Xlib/Xcb]DisplayHandlewith a display ofNonecan be constructed safely.Win32WindowHandle,[Xlib/Xcb]WindowHandleand WASM web handles involve window IDs with no borrowed state.It should be possible to construct these safely, with constructors on the safe types.