pub unsafe trait FreeItem: Sized {
// Required methods
fn new(idx: usize) -> Self;
fn flags() -> UmaFlags;
}Expand description
Each item in Slab::free.
§Safety
Wrong flags from Self::flags() can cause undefined behavior in some places.
Required 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.