Trait foreign_types::ForeignType 
source · [−]pub trait ForeignType {
    type CType;
    type Ref: ForeignTypeRef
    where
        <Self::Ref as ForeignTypeRef>::CType == Self::CType;
    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.
Required Associated Types
type Ref: ForeignTypeRef 
where
    <Self::Ref as ForeignTypeRef>::CType == Self::CType
type Ref: ForeignTypeRef 
where
    <Self::Ref as ForeignTypeRef>::CType == Self::CType
The type representing a reference to this type.
Required Methods
Constructs an instance of this type from its raw type.