You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
use std::os::raw::c_void;
|
|
|
|
pub trait AsPtr<T> {
|
|
fn as_ptr(&self) -> *const T;
|
|
}
|
|
|
|
pub trait AsMutPtr<T> {
|
|
fn as_mut_ptr(&self) -> *mut T;
|
|
}
|
|
|
|
pub trait AsVoidPtr {
|
|
fn as_void_ptr(&self) -> *const c_void;
|
|
}
|
|
|
|
pub trait AsMutVoidPtr {
|
|
fn as_mut_void_ptr(&self) -> *mut c_void;
|
|
}
|