[][src]Trait foreign_types::ForeignType

pub trait ForeignType where
    <Self::Ref as ForeignTypeRef>::CType == Self::CType
{ type CType; type Ref: ForeignTypeRef; unsafe fn from_ptr(ptr: *mut Self::CType) -> Self;
fn as_ptr(&self) -> *mut Self::CType; }

A type implemented by wrappers over foreign types.

Associated Types

type CType

The raw C type.

type Ref: ForeignTypeRef

The type representing a reference to this type.

Loading content...

Required methods

unsafe fn from_ptr(ptr: *mut Self::CType) -> Self

Constructs an instance of this type from its raw type.

fn as_ptr(&self) -> *mut Self::CType

Returns a raw pointer to the wrapped value.

Loading content...

Implementors

Loading content...