Trait unsize::CoerceUnsize[][src]

pub trait CoerceUnsize<U: ?Sized>: CoerciblePtr<U> {
    fn unsize<F>(self, with: Coercion<Self::Pointee, U, F>) -> Self::Output
    where
        F: FnOnce(*const Self::Pointee) -> *const U
, { ... } }

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]

Convert a pointer, as if with unsize coercion.

See CoerciblePtr::unsize_with for details.

Loading content...

Implementors

impl<T, U: ?Sized> CoerceUnsize<U> for T where
    T: CoerciblePtr<U>, 
[src]

Loading content...