[−][src]Trait slice_dst::AllocSliceDst
Types that can allocate a custom slice DST within them.
Required methods
unsafe fn new_slice_dst<I>(len: usize, init: I) -> Self where
I: FnOnce(NonNull<S>),
I: FnOnce(NonNull<S>),
Create a new custom slice DST.
Safety
init
must properly initialize the object behind the pointer.
The stored length of the slice DST must be the same as the length used in this call.
init
receives a fully uninitialized pointer and must not read anything before writing.
Implementations on Foreign Types
impl<S: ?Sized + SliceDst> AllocSliceDst<S> for Box<S>
[src]
unsafe fn new_slice_dst<I>(len: usize, init: I) -> Self where
I: FnOnce(NonNull<S>),
[src]
I: FnOnce(NonNull<S>),
impl<S: ?Sized + SliceDst> AllocSliceDst<S> for Rc<S>
[src]
unsafe fn new_slice_dst<I>(len: usize, init: I) -> Self where
I: FnOnce(NonNull<S>),
[src]
I: FnOnce(NonNull<S>),
impl<S: ?Sized + SliceDst> AllocSliceDst<S> for Arc<S>
[src]
unsafe fn new_slice_dst<I>(len: usize, init: I) -> Self where
I: FnOnce(NonNull<S>),
[src]
I: FnOnce(NonNull<S>),