adding SliceMeta

no-dual
Avril 4 years ago
parent fd8f767077
commit 9a01d6f133
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -18,6 +18,7 @@ pub enum AnySlice { }
/// ///
/// # Layout /// # Layout
/// This type has a `repr(C)` memory layout of 2 `size_t`s and is safe for FFI use. /// This type has a `repr(C)` memory layout of 2 `size_t`s and is safe for FFI use.
//TODO: Manyally force impls of all these regardless of if `T` impls them (derive does not do this)
#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Copy, Default)] #[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Copy, Default)]
#[repr(C)] #[repr(C)]
pub struct SliceMeta<T = AnySlice> pub struct SliceMeta<T = AnySlice>

Loading…
Cancel
Save