Trait windows::Abi[][src]

pub unsafe trait Abi: Sized {
    type Abi;
    fn abi(&self) -> Self::Abi { ... }
fn set_abi(&mut self) -> *mut Self::Abi { ... }
unsafe fn from_abi(abi: Self::Abi) -> Result<Self> { ... }
fn drop_param(_: &mut Param<'_, Self>) { ... } }
Expand description

Provides a generic way of referring to and converting between a Rust object and its ABI equivalent.

This trait is automatically used by the generated bindings and should not be used directly.

Associated Types

The abi representation of the implementing type.

Safety

Self and Abi must have the same exact in-memory representation.

Provided methods

Casts the Rust object to its ABI type without copying the object.

Returns a pointer for setting the object’s value via an ABI call.

Casts the ABI representation to a Rust object by taking ownership of the bits.

Implementations on Foreign Types

Implementors