Trait unsize::CoerceUnsize [−][src]
An extension trait using CoerciblePtr
for a safe interface.
Provided methods
fn unsize<F>(self, with: Coercion<Self::Pointee, U, F>) -> Self::Output where
F: FnOnce(*const Self::Pointee) -> *const U,
[src]
F: FnOnce(*const Self::Pointee) -> *const U,
Convert a pointer, as if with unsize coercion.
See CoerciblePtr::unsize_with
for details.
Implementors
impl<T, U: ?Sized> CoerceUnsize<U> for T where
T: CoerciblePtr<U>,
[src]
T: CoerciblePtr<U>,