[][src]Trait ffi_convert::RawBorrow

pub trait RawBorrow<T> {
    unsafe fn raw_borrow<'a>(input: *const T) -> Result<&'a Self, Error>;
}

Trait to create borrowed references to type T, from a raw pointer to a T

Required methods

unsafe fn raw_borrow<'a>(input: *const T) -> Result<&'a Self, Error>

Loading content...

Implementations on Foreign Types

impl RawBorrow<i8> for CStr[src]

Loading content...

Implementors

impl<T> RawBorrow<T> for T[src]

Trait that allows obtaining a borrowed reference to a type T from a raw pointer to T

Loading content...