#[repr(transparent)]
pub struct Direct3D(_);
Expand description

[docs.microsoft.com] Factory for use in creating your initial Device.

Microsoft’s documentation claims that several APIs return D3DERR::NOTAVAILABLE when, in my testing, they return D3DERR::INVALIDCALL instead. Do not trust the greyed out, crossed out, air quoted documentation like this!

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The resulting type after dereferencing.

Dereferences the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

The raw underlying winapi type

Take ownership from a raw winapi type, panicing if raw is null. Read more

Take ownership from a raw winapi type, returning None if raw is null. Read more

Give up / leak ownership into a raw winapi pointer type.

Allow access as a raw winapi pointer type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.