Trait foreign_types::ForeignType [−][src]
pub trait ForeignType {
type CType;
type Ref: ForeignTypeRef;
unsafe fn from_ptr(ptr: *mut Self::CType) -> Self;
fn as_ptr(&self) -> *mut Self::CType;
}
Expand description
A type implemented by wrappers over foreign types.
Associated Types
type Ref: ForeignTypeRef
type Ref: ForeignTypeRef
The type representing a reference to this type.
Required methods
Constructs an instance of this type from its raw type.