pub trait IntoReprRust {
    type ReprRust;

    // Required method
    fn into_rust(self) -> Self::ReprRust;
}
Expand description

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

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

Required Associated Types§

source

type ReprRust

The #[repr(Rust)] equivalent.

Required Methods§

source

fn into_rust(self) -> Self::ReprRust

Performs the conversion

Implementors§

source§

impl IntoReprRust for ROnceState

source§

impl IntoReprRust for RCmpOrdering

source§

impl IntoReprRust for RSeekFrom

source§

impl IntoReprRust for RDuration

source§

impl IntoReprRust for RIoError

source§

impl IntoReprRust for RIoErrorKind

source§

impl IntoReprRust for RString

source§

impl<'a> IntoReprRust for RStr<'a>

§

type ReprRust = &'a str

source§

impl<'a> IntoReprRust for RCowStr<'a>

§

type ReprRust = Cow<'a, str>

source§

impl<'a, T> IntoReprRust for RSlice<'a, T>

§

type ReprRust = &'a [T]

source§

impl<'a, T> IntoReprRust for RSliceMut<'a, T>

§

type ReprRust = &'a mut [T]

source§

impl<'a, T: Clone> IntoReprRust for RCowSlice<'a, T>

§

type ReprRust = Cow<'a, [T]>

source§

impl<'a, T: Clone> IntoReprRust for RCowVal<'a, T>

§

type ReprRust = Cow<'a, T>

source§

impl<A> IntoReprRust for Tuple1<A>

source§

impl<A, B> IntoReprRust for Tuple2<A, B>

source§

impl<A, B, C> IntoReprRust for Tuple3<A, B, C>

source§

impl<A, B, C, D> IntoReprRust for Tuple4<A, B, C, D>

source§

impl<T> IntoReprRust for ROption<T>

§

type ReprRust = Option<T>

source§

impl<T> IntoReprRust for RArc<T>
where T: Clone + StableAbi,

§

type ReprRust = Arc<T>

source§

impl<T> IntoReprRust for RBox<T>

§

type ReprRust = Box<T>

source§

impl<T> IntoReprRust for RVec<T>

§

type ReprRust = Vec<T>

source§

impl<T, E> IntoReprRust for RResult<T, E>

§

type ReprRust = Result<T, E>