pub trait MainMemory: Device {
    // Required methods
    fn as_ptr<T, S>(ptr: &Self::Ptr<T, S>) -> *const T
       where S: Shape;
    fn as_ptr_mut<T, S>(ptr: &mut Self::Ptr<T, S>) -> *mut T
       where S: Shape;
}

Required Methods§

source

fn as_ptr<T, S>(ptr: &Self::Ptr<T, S>) -> *const Twhere S: Shape,

source

fn as_ptr_mut<T, S>(ptr: &mut Self::Ptr<T, S>) -> *mut Twhere S: Shape,

Implementors§