pub trait Pointable<E> {
    // Required methods
    fn as_ptr(&self) -> *const E;
    fn len(&self) -> usize;
}
Expand description

Represents a type that I can get a non mutable pointer to and a number of elements that it points to:

Required Methods§

source

fn as_ptr(&self) -> *const E

Hands out a mutable pointer to the underlying memory:

source

fn len(&self) -> usize

The number of the elements pointed to by MutPointable::as_mut_ptr

Implementations on Foreign Types§

source§

impl<E> Pointable<E> for Arc<Vec<E>>

source§

fn len(&self) -> usize

source§

fn as_ptr(&self) -> *const E

source§

impl<E> Pointable<E> for Vec<E>

source§

fn len(&self) -> usize

source§

fn as_ptr(&self) -> *const E

Implementors§