Trait gravel_ffi::prelude::IntoReprC

pub trait IntoReprC {
    type ReprC;

    // Required method
    fn into_c(self) -> Self::ReprC;
}
Expand description

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

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

Required Associated Types§

type ReprC

The #[repr(C)] equivalent.

Required Methods§

fn into_c(self) -> Self::ReprC

Performs the conversion

Implementations on Foreign Types§

§

impl IntoReprC for Ordering

§

type ReprC = RCmpOrdering

§

fn into_c(self) -> <Ordering as IntoReprC>::ReprC

§

impl IntoReprC for SeekFrom

§

type ReprC = RSeekFrom

§

fn into_c(self) -> <SeekFrom as IntoReprC>::ReprC

§

impl IntoReprC for ErrorKind

§

type ReprC = RIoErrorKind

§

fn into_c(self) -> <ErrorKind as IntoReprC>::ReprC

§

impl IntoReprC for String

§

type ReprC = RString

§

fn into_c(self) -> <String as IntoReprC>::ReprC

§

impl IntoReprC for Duration

§

type ReprC = RDuration

§

fn into_c(self) -> <Duration as IntoReprC>::ReprC

§

impl IntoReprC for Error

§

type ReprC = RIoError

§

fn into_c(self) -> <Error as IntoReprC>::ReprC

§

impl IntoReprC for OnceState

§

type ReprC = ROnceState

§

fn into_c(self) -> <OnceState as IntoReprC>::ReprC

§

impl IntoReprC for RecvError

§

type ReprC = RRecvError

§

fn into_c(self) -> <RecvError as IntoReprC>::ReprC

§

impl IntoReprC for RecvTimeoutError

§

type ReprC = RRecvTimeoutError

§

fn into_c(self) -> <RecvTimeoutError as IntoReprC>::ReprC

§

impl IntoReprC for TryRecvError

§

type ReprC = RTryRecvError

§

fn into_c(self) -> <TryRecvError as IntoReprC>::ReprC

§

impl<'a> IntoReprC for &'a str

§

type ReprC = RStr<'a>

§

fn into_c(self) -> <&'a str as IntoReprC>::ReprC

§

impl<'a, T> IntoReprC for &'a [T]

§

type ReprC = RSlice<'a, T>

§

fn into_c(self) -> <&'a [T] as IntoReprC>::ReprC

§

impl<'a, T> IntoReprC for &'a mut [T]

§

type ReprC = RSliceMut<'a, T>

§

fn into_c(self) -> <&'a mut [T] as IntoReprC>::ReprC

§

impl<'a, T> IntoReprC for Cow<'a, T>
where T: RCowCompatibleRef<'a> + ?Sized,

§

type ReprC = RCow<<T as RCowCompatibleRef<'a>>::RefC, <T as RCowCompatibleRef<'a>>::ROwned>

§

fn into_c(self) -> <Cow<'a, T> as IntoReprC>::ReprC

§

impl<A> IntoReprC for (A,)

§

type ReprC = Tuple1<A>

§

fn into_c(self) -> <(A,) as IntoReprC>::ReprC

§

impl<A, B> IntoReprC for (A, B)

§

type ReprC = Tuple2<A, B>

§

fn into_c(self) -> <(A, B) as IntoReprC>::ReprC

§

impl<A, B, C> IntoReprC for (A, B, C)

§

type ReprC = Tuple3<A, B, C>

§

fn into_c(self) -> <(A, B, C) as IntoReprC>::ReprC

§

impl<A, B, C, D> IntoReprC for (A, B, C, D)

§

type ReprC = Tuple4<A, B, C, D>

§

fn into_c(self) -> <(A, B, C, D) as IntoReprC>::ReprC

§

impl<T> IntoReprC for Option<T>

§

type ReprC = ROption<T>

§

fn into_c(self) -> <Option<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for Box<T>

§

type ReprC = RBox<T>

§

fn into_c(self) -> <Box<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for Arc<T>

§

type ReprC = RArc<T>

§

fn into_c(self) -> <Arc<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for Vec<T>

§

type ReprC = RVec<T>

§

fn into_c(self) -> <Vec<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for Range<T>

§

type ReprC = RRange<T>

§

fn into_c(self) -> <Range<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for RangeFrom<T>

§

type ReprC = RRangeFrom<T>

§

fn into_c(self) -> <RangeFrom<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for RangeInclusive<T>

§

type ReprC = RRangeInclusive<T>

§

fn into_c(self) -> <RangeInclusive<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for RangeTo<T>

§

type ReprC = RRangeTo<T>

§

fn into_c(self) -> <RangeTo<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for RangeToInclusive<T>

§

type ReprC = RRangeToInclusive<T>

§

fn into_c(self) -> <RangeToInclusive<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for Receiver<T>

§

type ReprC = RReceiver<T>

§

fn into_c(self) -> <Receiver<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for SendError<T>

§

type ReprC = RSendError<T>

§

fn into_c(self) -> <SendError<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for SendTimeoutError<T>

§

type ReprC = RSendTimeoutError<T>

§

fn into_c(self) -> <SendTimeoutError<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for Sender<T>

§

type ReprC = RSender<T>

§

fn into_c(self) -> <Sender<T> as IntoReprC>::ReprC

§

impl<T> IntoReprC for TrySendError<T>

§

type ReprC = RTrySendError<T>

§

fn into_c(self) -> <TrySendError<T> as IntoReprC>::ReprC

§

impl<T, E> IntoReprC for Result<T, E>

§

type ReprC = RResult<T, E>

§

fn into_c(self) -> <Result<T, E> as IntoReprC>::ReprC

Implementors§