MainMemory

Trait MainMemory 

Source
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 T
where S: Shape,

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§