1 unstable release
0.0.0 | Feb 16, 2020 |
---|
#12 in #len
24KB
865 lines
::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 anOption
if you want to support theNULL
case). -
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 anOption
if you want to support theNULL
case). -
BoxedSlice<T>
, aBox<[T]>
whose layout in C is guaranteed to bestruct { T * ptr; size_t len; }
(but withptr != NULL
: wrap it in anOption
if you want to support theNULL
case).
⚠️ WIP ⚠️
This is currently still being developed and in an experimental stage, hence its not being published to crates.io yet.