Function dyer::utils::slice[][src]

pub fn slice<'a, T>(ptr: *const T, len: usize) -> &'a [T]
Notable traits for &'_ mut [u8]
impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
Expand description

basically re-construct a slice from ptr

generally speaking, it is used to manipulate the lifetime