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
type Abi
[src]
Expand description
The abi representation of the implementing type.
SAFETY: Self
and Abi
must have the same exact in-memory representation.
Provided methods
fn abi(&self) -> Self::Abi
[src]
Expand description
Casts the Rust object to its ABI type without copying the object.
fn set_abi(&mut self) -> *mut Self::Abi
[src]
Expand description
Returns a pointer for setting the object’s value via an ABI call.
unsafe fn from_abi(abi: Self::Abi) -> Result<Self>
[src]
Expand description
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn drop_param(_: &mut Param<'_, Self>)
[src]
Implementations on Foreign Types
Loading content...Implementors
Loading content...