repr_offset::utils

Trait PointerTarget

Source
pub unsafe trait PointerTarget {
    type Target;
}
Expand description

Gets the type pointed-to by a pointer.

Required Associated Types§

Source

type Target

The pointed-to type.

Implementations on Foreign Types§

Source§

impl<T> PointerTarget for *const T

Source§

impl<T> PointerTarget for *mut T

Source§

impl<T> PointerTarget for &T

Source§

impl<T> PointerTarget for &mut T

Implementors§