[][src]Trait ffi_convert::CReprOf

pub trait CReprOf<T>: Sized + CDrop {
    fn c_repr_of(input: T) -> Result<Self, Error>;
}

Trait showing that the struct implementing it is a repr(C) compatible view of the parametrized type that can be created from an object of this type.

Required methods

fn c_repr_of(input: T) -> Result<Self, Error>

Loading content...

Implementations on Foreign Types

impl CReprOf<usize> for usize[src]

impl CReprOf<i16> for i16[src]

impl CReprOf<u16> for u16[src]

impl CReprOf<i32> for i32[src]

impl CReprOf<u32> for u32[src]

impl CReprOf<i64> for i64[src]

impl CReprOf<u64> for u64[src]

impl CReprOf<f32> for f32[src]

impl CReprOf<f64> for f64[src]

impl CReprOf<usize> for i32[src]

impl CReprOf<bool> for u8[src]

impl CReprOf<String> for CString[src]

Loading content...

Implementors

impl CReprOf<Vec<String>> for CStringArray[src]

impl<U: CReprOf<V> + CDrop, V> CReprOf<Vec<V>> for CArray<U>[src]

impl<U: CReprOf<V> + CDrop, V: PartialOrd + PartialEq> CReprOf<Range<V>> for CRange<U>[src]

Loading content...