Trait rattish::container::Pointer[][src]

pub trait Pointer where
    Self: Coercible + Sized
{ unsafe fn coerce<U>(
        self,
        metadata: Metadata<Coerced<Self::Inner, U>>
    ) -> Self::Coerced
    where
        U: ?Sized,
        Self::Coerced: Sized
; }
Expand description

A Sized type that inherits Pointee::Metadata from a contained type, and therefore is a “pointer” to that type; as such, it is coercible if that contained type is coercible.

Required methods

Perform the coercion. In most cases this will utilise the Pointer implementation for some more primitive type, e.g. a reference or a raw pointer.

Safety

metadata must be correct for Self::Inner.

Implementations on Foreign Types

Implementors