Trait gravel_ffi::prelude::IntoReprRust

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§

type ReprRust

The #[repr(Rust)] equivalent.

Required Methods§

fn into_rust(self) -> Self::ReprRust

Performs the conversion

Implementors§

§

impl IntoReprRust for RCmpOrdering

§

impl IntoReprRust for RDuration

§

impl IntoReprRust for RIoError

§

impl IntoReprRust for RIoErrorKind

§

impl IntoReprRust for ROnceState

§

type ReprRust = OnceState

§

impl IntoReprRust for RSeekFrom

§

impl IntoReprRust for RString

§

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

§

type ReprRust = &'a str

§

impl<'a> IntoReprRust for RCow<RStr<'a>, RString>

§

type ReprRust = Cow<'a, str>

§

impl<'a, T> IntoReprRust for RCow<&'a T, T>
where T: Clone,

§

type ReprRust = Cow<'a, T>

§

impl<'a, T> IntoReprRust for RCow<RSlice<'a, T>, RVec<T>>
where T: Clone,

§

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

§

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

§

type ReprRust = &'a [T]

§

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

§

type ReprRust = &'a mut [T]

§

impl<A> IntoReprRust for Tuple1<A>

§

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

§

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

§

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

§

impl<T> IntoReprRust for ROption<T>

§

type ReprRust = Option<T>

§

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

§

type ReprRust = Arc<T>

§

impl<T> IntoReprRust for RBox<T>

§

type ReprRust = Box<T>

§

impl<T> IntoReprRust for RVec<T>

§

type ReprRust = Vec<T>

§

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

§

type ReprRust = Result<T, E>