unsafe fn new(key: usize, storage: &Slab<T>) -> Self {
        Active {
            key,
            storage: storage as *const _,
        }
    }
/// Create a new active segment pointing to the given storage.
///
/// # Safety
///
/// This function is unsafe. Caller must ensure that:
///
/// 1. the `storage` reference is valid _through-out_ the
/// lifetime of the created object
///
/// 2. all co-existing active-segments are
/// linearly-orderable as per `T: PartialOrd`, and the
/// ordering does not change over its lifetime.
/// Violating this will not lead to a memory-UB, but may
/// cause panics or incorrect output.
Create a new active segment pointing to the given storage.
Create a new active segment pointing to the given storage .
unsafe fn new(key: usize, storage: &Slab<T>) -> Self {
        Active {
            key,
            storage: storage as *const _,
        }
    }
unsafe fn new ( key : usize , storage : & Slab < T > ) -> Self { Active { key , storage : storage as * const _ , } }
Create a new active segment pointing to the given storage.
Create a new active segment pointing to the given storage .
key
usize
storage
&Slab<T>
key
usize
storage
&Slab<T>
safety
This function is unsafe. Caller must ensure that.

1. the `storage` reference is valid _through-out_ the
lifetime of the created object

2. all co-existing active-segments are
linearly-orderable as per `T: PartialOrd`, and the
ordering does not change over its lifetime.
Violating this will not lead to a memory-UB, but may
cause panics or incorrect output.
This function is unsafe . Caller must ensure that . 1 . the ` storage ` reference is valid _through - out_ the lifetime of the created object 2 . all co - existing active - segments are linearly - orderable as per ` T : PartialOrd ` and the ordering does not change over its lifetime . Violating this will not lead to a memory - UB but may cause panics or incorrect output .