pub unsafe fn from_vec(words: Vec<usize>) -> Result<Self, SlabIntegrityError> {
        let slab =
            std::mem::transmute::<Box<[usize]>, Box<Slab<'static>>>(words.into_boxed_slice());
        Self::from_slab(slab)
    }
/// Convert the given vector into an OwnedSlab.
///
/// # Safety
///
/// The caller must only invoke this function on a vector of usizes which
/// was initialized by slab APIs (e.g., one cloned from a slice returned by
/// `OwnedSlab::as_slice` or `SlabReader::as_slice`).
Convert the given vector into an OwnedSlab.
Convert the given vector into an OwnedSlab .
pub unsafe fn from_vec(words: Vec<usize>) -> Result<Self, SlabIntegrityError> {
        let slab =
            std::mem::transmute::<Box<[usize]>, Box<Slab<'static>>>(words.into_boxed_slice());
        Self::from_slab(slab)
    }
pub unsafe fn from_vec ( words : Vec < usize > ) -> Result < Self , SlabIntegrityError > { let slab = std :: mem :: transmute :: < Box < [ usize ] > , Box < Slab < ' static > > > ( words . into_boxed_slice ( ) ) ; Self :: from_slab ( slab ) }
Convert the given vector into an OwnedSlab.
Convert the given vector into an OwnedSlab .
words
Vec<usize>
words
Vec<usize>
safety
The caller must only invoke this function on a vector of usizes which
was initialized by slab APIs .
The caller must only invoke this function on a vector of usizes which was initialized by slab APIs .