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.

Required Methods§

source

fn as_windows(&self) -> &T

Implementations on Foreign Types§

source§

impl ToWindows<ID3D12Device> for *const ID3D12Device

source§

fn as_windows(&self) -> &ID3D12Device

source§

impl ToWindows<ID3D12Device> for *mut ID3D12Device

source§

fn as_windows(&self) -> &ID3D12Device

Implementors§

source§

impl ToWindows<ID3D12Device> for &mut ID3D12Device