Trait IntoReprC

Source
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§

Source

type ReprC

The #[repr(C)] equivalent.

Required Methods§

Source

fn into_c(self) -> Self::ReprC

Performs the conversion

Implementations on Foreign Types§

Source§

impl IntoReprC for Ordering

Source§

impl IntoReprC for SeekFrom

Source§

impl IntoReprC for ErrorKind

Source§

impl IntoReprC for RecvTimeoutError

Source§

type ReprC = RRecvTimeoutError

Source§

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

Source§

impl IntoReprC for TryRecvError

Source§

type ReprC = RTryRecvError

Source§

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

Source§

impl IntoReprC for OnceState

Source§

impl IntoReprC for String

Source§

impl IntoReprC for Duration

Source§

impl IntoReprC for Error

Source§

impl IntoReprC for RecvError

Source§

type ReprC = RRecvError

Source§

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

Source§

impl<'a> IntoReprC for &'a str

Source§

type ReprC = RStr<'a>

Source§

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

Source§

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

Source§

type ReprC = RSlice<'a, T>

Source§

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

Source§

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

Source§

type ReprC = RSliceMut<'a, T>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<A> IntoReprC for (A,)

Source§

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

Source§

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

Source§

type ReprC = Tuple3<A, B, C>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T> IntoReprC for Option<T>

Source§

impl<T> IntoReprC for SendTimeoutError<T>

Source§

type ReprC = RSendTimeoutError<T>

Source§

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

Source§

impl<T> IntoReprC for TrySendError<T>

Source§

type ReprC = RTrySendError<T>

Source§

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

Source§

impl<T> IntoReprC for Box<T>

Source§

type ReprC = RBox<T>

Source§

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

Source§

impl<T> IntoReprC for Arc<T>

Source§

type ReprC = RArc<T>

Source§

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

Source§

impl<T> IntoReprC for Vec<T>

Source§

type ReprC = RVec<T>

Source§

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

Source§

impl<T> IntoReprC for Range<T>

Source§

type ReprC = RRange<T>

Source§

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

Source§

impl<T> IntoReprC for RangeFrom<T>

Source§

type ReprC = RRangeFrom<T>

Source§

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

Source§

impl<T> IntoReprC for RangeInclusive<T>

Source§

type ReprC = RRangeInclusive<T>

Source§

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

Source§

impl<T> IntoReprC for RangeTo<T>

Source§

type ReprC = RRangeTo<T>

Source§

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

Source§

impl<T> IntoReprC for RangeToInclusive<T>

Source§

type ReprC = RRangeToInclusive<T>

Source§

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

Source§

impl<T> IntoReprC for Receiver<T>

Source§

impl<T> IntoReprC for Sender<T>

Source§

impl<T> IntoReprC for SendError<T>

Source§

type ReprC = RSendError<T>

Source§

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

Source§

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

Source§

type ReprC = RResult<T, E>

Source§

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

Implementors§