Trait abi_stable::traits::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 RecvTimeoutError

source§

type ReprC = RRecvTimeoutError

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for TryRecvError

source§

type ReprC = RTryRecvError

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for OnceState

source§

impl IntoReprC for Ordering

source§

impl IntoReprC for SeekFrom

source§

impl IntoReprC for ErrorKind

source§

impl IntoReprC for RecvError

source§

type ReprC = RRecvError

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for String

source§

type ReprC = RString

source§

fn into_c(self) -> Self::ReprC

source§

impl IntoReprC for Duration

source§

impl IntoReprC for Error

source§

type ReprC = RIoError

source§

fn into_c(self) -> Self::ReprC

source§

impl<'a> IntoReprC for &'a str

source§

type ReprC = RStr<'a>

source§

fn into_c(self) -> Self::ReprC

source§

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

source§

type ReprC = RSlice<'a, T>

source§

fn into_c(self) -> Self::ReprC

source§

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

source§

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>,

source§

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,)

source§

type ReprC = Tuple1<A>

source§

fn into_c(self) -> Self::ReprC

source§

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

source§

type ReprC = Tuple2<A, B>

source§

fn into_c(self) -> Self::ReprC

source§

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

source§

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)

source§

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

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for SendTimeoutError<T>

source§

type ReprC = RSendTimeoutError<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for TrySendError<T>

source§

type ReprC = RTrySendError<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Option<T>

source§

type ReprC = ROption<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Receiver<T>

source§

type ReprC = RReceiver<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Sender<T>

source§

type ReprC = RSender<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for SendError<T>

source§

type ReprC = RSendError<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Box<T>

source§

type ReprC = RBox<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Arc<T>

source§

type ReprC = RArc<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Vec<T>

source§

type ReprC = RVec<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for Range<T>

source§

type ReprC = RRange<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for RangeFrom<T>

source§

type ReprC = RRangeFrom<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for RangeInclusive<T>

source§

type ReprC = RRangeInclusive<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for RangeTo<T>

source§

type ReprC = RRangeTo<T>

source§

fn into_c(self) -> Self::ReprC

source§

impl<T> IntoReprC for RangeToInclusive<T>

source§

type ReprC = RRangeToInclusive<T>

source§

fn into_c(self) -> Self::ReprC

source§

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

source§

type ReprC = RResult<T, E>

source§

fn into_c(self) -> Self::ReprC

Implementors§