[][src]Trait ffi_convert::AsRust

pub trait AsRust<T> {
    fn as_rust(&self) -> Result<T, Error>;
}

Trait showing that the struct implementing it is a repr(C) compatible view of the parametrized type and that an instance of the parametrized type can be created form this struct

Required methods

fn as_rust(&self) -> Result<T, Error>

Loading content...

Implementations on Foreign Types

impl AsRust<usize> for usize[src]

impl AsRust<i16> for i16[src]

impl AsRust<u16> for u16[src]

impl AsRust<i32> for i32[src]

impl AsRust<u32> for u32[src]

impl AsRust<i64> for i64[src]

impl AsRust<u64> for u64[src]

impl AsRust<f32> for f32[src]

impl AsRust<f64> for f64[src]

impl AsRust<usize> for i32[src]

impl AsRust<bool> for u8[src]

impl AsRust<String> for CStr[src]

Loading content...

Implementors

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

impl<U: AsRust<V>, V> AsRust<Vec<V>> for CArray<U>[src]

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

Loading content...