[][src]Trait abi_stable::traits::IntoReprRust

pub trait IntoReprRust {
    type ReprRust;
    pub fn into_rust(self) -> Self::ReprRust;
}

Converts a #[repr(C)] type into its #[repr(Rust)] equivalent.

#[repr(Rust)] is the default representation for data types.

Associated Types

type ReprRust[src]

The #[repr(Rust)] equivalent.

Loading content...

Required methods

pub fn into_rust(self) -> Self::ReprRust[src]

Performs the conversion

Loading content...

Implementors

impl IntoReprRust for ROnceState[src]

type ReprRust = OnceState

impl IntoReprRust for RCmpOrdering[src]

type ReprRust = Ordering

impl IntoReprRust for RSeekFrom[src]

type ReprRust = SeekFrom

impl IntoReprRust for RString[src]

type ReprRust = String

impl IntoReprRust for RDuration[src]

type ReprRust = Duration

impl IntoReprRust for RIoError[src]

type ReprRust = ioError

impl IntoReprRust for RIoErrorKind[src]

type ReprRust = ErrorKind

impl<'a> IntoReprRust for RStr<'a>[src]

type ReprRust = &'a str

impl<'a, B: ?Sized> IntoReprRust for RCow<'a, B> where
    B: BorrowOwned<'a>, 
[src]

type ReprRust = Cow<'a, B>

impl<'a, T> IntoReprRust for RSlice<'a, T>[src]

type ReprRust = &'a [T]

impl<'a, T> IntoReprRust for RSliceMut<'a, T>[src]

type ReprRust = &'a mut [T]

impl<A> IntoReprRust for Tuple1<A>[src]

type ReprRust = (A,)

impl<A, B> IntoReprRust for Tuple2<A, B>[src]

type ReprRust = (A, B)

impl<A, B, C> IntoReprRust for Tuple3<A, B, C>[src]

type ReprRust = (A, B, C)

impl<A, B, C, D> IntoReprRust for Tuple4<A, B, C, D>[src]

type ReprRust = (A, B, C, D)

impl<T> IntoReprRust for ROption<T>[src]

type ReprRust = Option<T>

impl<T> IntoReprRust for RArc<T> where
    T: Clone + StableAbi
[src]

type ReprRust = Arc<T>

impl<T> IntoReprRust for RBox<T>[src]

type ReprRust = Box<T>

impl<T> IntoReprRust for RVec<T>[src]

type ReprRust = Vec<T>

impl<T, E> IntoReprRust for RResult<T, E>[src]

type ReprRust = Result<T, E>

Loading content...