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§
fn as_ptr<T, S>(ptr: &Self::Ptr<T, S>) -> *const Twhere
S: Shape,
fn as_ptr_mut<T, S>(ptr: &mut Self::Ptr<T, S>) -> *mut Twhere
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.