use mem;
/// The representation of a Rust slice
+#[repr(C)]
pub struct Slice<T> {
pub data: *const T,
pub len: uint,
}
/// The representation of a Rust closure
+#[repr(C)]
pub struct Closure {
pub code: *mut (),
pub env: *mut (),
}
/// The representation of a Rust procedure (`proc()`)
+#[repr(C)]
pub struct Procedure {
pub code: *mut (),
pub env: *mut (),
///
/// This struct does not have a `Repr` implementation
/// because there is no way to refer to all trait objects generically.
+#[repr(C)]
pub struct TraitObject {
pub data: *mut (),
pub vtable: *mut (),
impl<'a, T> Repr<Slice<T>> for &'a [T] {}
impl<'a> Repr<Slice<u8>> for &'a str {}
-