pub trait BaseType: Sized {
const TYPE: CSTL_Type = _;
const SIZE: usize = _;
const ALIGN: usize = _;
const DROP: CSTL_DropType = _;
// Provided method
unsafe extern "C" fn raw_drop(
first: NonNull<Self>,
last: NonNull<Self>,
) { ... }
}
Expand description
Trait for sized types.
Besides the size and alignment, also provides a CSTL_DropType
table.
Provided Associated Constants§
Sourceconst DROP: CSTL_DropType = _
const DROP: CSTL_DropType = _
CSTL destructible type table.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.