[][src]Trait embedded_spi::ffi::Conv

pub trait Conv {
    fn to_c_ptr(&mut self) -> *mut c_void;
fn from_c_ptr<'a>(ctx: *mut c_void) -> &'a mut Self; }

Conv provides methods to convert rust types to and from c pointers

Required methods

fn to_c_ptr(&mut self) -> *mut c_void

Generate a C void pointer that can later be re-cast into this object

fn from_c_ptr<'a>(ctx: *mut c_void) -> &'a mut Self

Cast a C void pointer created by to_c_ptr back into this object

Loading content...

Implementors

impl<T> Conv for T where
    T: Cursed
[src]

fn to_c_ptr(&mut self) -> *mut c_void[src]

Generate a C void pointer that can be re-cast into this object

fn from_c_ptr<'a>(ctx: *mut c_void) -> &'a mut Self[src]

Cast a C void pointer created by to_c_ptr back into this object

Loading content...