pub trait Pointer {
    type Target;

    // Required method
    fn get(&self) -> *const Self::Target;
}
Expand description

Type that stores its value in an allocation and can retrieve a pointer to the value.

Required Associated Types§

Required Methods§

source

fn get(&self) -> *const Self::Target

Get a read-only pointer to the value.

Implementations on Foreign Types§

source§

impl<T> Pointer for &[T]

§

type Target = T

source§

fn get(&self) -> *const Self::Target

source§

impl<T> Pointer for Box<T>

§

type Target = T

source§

fn get(&self) -> *const Self::Target

source§

impl<T> Pointer for Rc<T>

§

type Target = T

source§

fn get(&self) -> *const Self::Target

source§

impl<T> Pointer for Arc<T>

§

type Target = T

source§

fn get(&self) -> *const Self::Target

source§

impl<T> Pointer for Vec<T>

§

type Target = T

source§

fn get(&self) -> *const Self::Target

source§

impl<const LEN: usize, T> Pointer for &[T; LEN]

§

type Target = T

source§

fn get(&self) -> *const Self::Target

Implementors§