::repr_c
A crate to expose #[repr(C)] (and thus FFI-compatible) types equivalent to
the standard library's, such as:
-
RefSlice<'lt, T>, a&'lt [T]whose layout in C is guaranteed to bestruct { T const * ptr; size_t len; }(but withptr != NULL: wrap it in anOptionif you want to support theNULLcase). -
MutSlice<'lt, T>, a&'lt mut [T]whose layout in C is guaranteed to bestruct { T * ptr; size_t len; }(but withptr != NULL: wrap it in anOptionif you want to support theNULLcase). -
BoxedSlice<T>, aBox<[T]>whose layout in C is guaranteed to bestruct { T * ptr; size_t len; }(but withptr != NULL: wrap it in anOptionif you want to support theNULLcase).
⚠️ WIP ⚠️
This is currently still being developed and in an experimental stage, hence its not being published to crates.io yet.