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

§

type ReprC = RCmpOrdering

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for SeekFrom

§

type ReprC = RSeekFrom

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for ErrorKind

§

type ReprC = RIoErrorKind

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for RecvTimeoutError

Available on crate feature channels only.
§

type ReprC = RRecvTimeoutError

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for TryRecvError

Available on crate feature channels only.
§

type ReprC = RTryRecvError

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for OnceState

§

type ReprC = ROnceState

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for String

§

type ReprC = RString

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for Duration

§

type ReprC = RDuration

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for Error

§

type ReprC = RIoError

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for RecvError

Available on crate feature channels only.
§

type ReprC = RRecvError

source§

fn into_c(self) -> Self::ReprC

source§

impl<'a> IntoReprC for &'a str

§

type ReprC = RStr<'a>

source§

fn into_c(self) -> Self::ReprC

source§

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

§

type ReprC = RSlice<'a, T>

source§

fn into_c(self) -> Self::ReprC

source§

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

§

type ReprC = RSliceMut<'a, T>

source§

fn into_c(self) -> Self::ReprC

source§

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

§

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

source§

fn into_c(self) -> Self::ReprC

source§

impl<A> IntoReprC for (A,)

§

type ReprC = Tuple1<A>

source§

fn into_c(self) -> Self::ReprC

source§

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

§

type ReprC = Tuple2<A, B>

source§

fn into_c(self) -> Self::ReprC

source§

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

§

type ReprC = Tuple3<A, B, C>

source§

fn into_c(self) -> Self::ReprC

source§

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

§

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

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Option<T>

§

type ReprC = ROption<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for SendTimeoutError<T>

Available on crate feature channels only.
§

type ReprC = RSendTimeoutError<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for TrySendError<T>

Available on crate feature channels only.
§

type ReprC = RTrySendError<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Box<T>

§

type ReprC = RBox<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Arc<T>

§

type ReprC = RArc<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Vec<T>

§

type ReprC = RVec<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Range<T>

§

type ReprC = RRange<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for RangeFrom<T>

§

type ReprC = RRangeFrom<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for RangeInclusive<T>

§

type ReprC = RRangeInclusive<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for RangeTo<T>

§

type ReprC = RRangeTo<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for RangeToInclusive<T>

§

type ReprC = RRangeToInclusive<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Receiver<T>

Available on crate feature channels only.
§

type ReprC = RReceiver<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Sender<T>

Available on crate feature channels only.
§

type ReprC = RSender<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for SendError<T>

Available on crate feature channels only.
§

type ReprC = RSendError<T>

source§

fn into_c(self) -> Self::ReprC

source§

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

§

type ReprC = RResult<T, E>

source§

fn into_c(self) -> Self::ReprC

Implementors§