pub trait ToWindows<T> {
// Required method
fn as_windows(&self) -> &T;
}Expand description
[windows] types hold their pointer internally and provide drop semantics. As such this trait
is usually implemented on the pointer type (*const, *mut) of the winapi object so that
a borrow of that pointer becomes a borrow of the [windows] type.