pub unsafe fn slice(&self) -> &[T] {
        let addr = self.buffer.addr() as usize;
        debug_assert_eq!(addr % mem::align_of::<T>(), 0);
        slice::from_raw_parts(addr as *const T, self.buffer.capacity())
    }
/// Returns the slice corresponding to the first mapping of the buffer.
///
/// # Safety
///
/// Provides raw access to the slice.
Returns the slice corresponding to the first mapping of the buffer.
Returns the slice corresponding to the first mapping of the buffer .
pub unsafe fn slice(&self) -> &[T] {
        let addr = self.buffer.addr() as usize;
        debug_assert_eq!(addr % mem::align_of::<T>(), 0);
        slice::from_raw_parts(addr as *const T, self.buffer.capacity())
    }
pub unsafe fn slice ( & self ) -> & [ T ] { let addr = self . buffer . addr ( ) as usize ; debug_assert_eq ! ( addr mem align_of T ( ) 0 ) ; slice :: from_raw_parts ( addr as * const T , self . buffer . capacity ( ) ) }
Returns the slice corresponding to the first mapping of the buffer.
Returns the slice corresponding to the first mapping of the buffer .
&self
&self
safety
Provides raw access to the slice.
Provides raw access to the slice .