stack 0.4.0

DSTs and arrays on the stack!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub trait PointerExt {
    unsafe fn uoffset(self, off: usize) -> Self;
}

impl<T> PointerExt for *const T {
    #[inline]
    unsafe fn uoffset(self, off: usize) -> Self {
        self.offset(off as isize)
    }
}

impl<T> PointerExt for *mut T {
    #[inline]
    unsafe fn uoffset(self, off: usize) -> Self {
        self.offset(off as isize)
    }
}