abi_stable::traits

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