Trait ulib::AsUPtr

source ·
pub trait AsUPtr<T: UniversalCopy> {
    // Required method
    fn as_uptr(&self, device: Device) -> *const T;
}
Expand description

A trait to get raw pointer for any device.

Required Methods§

source

fn as_uptr(&self, device: Device) -> *const T

Get an immutable raw pointer.

Implementations on Foreign Types§

source§

impl<T, U: UniversalCopy> AsUPtr<U> for &Twhere T: AsUPtr<U>,

source§

fn as_uptr(&self, device: Device) -> *const U

Implementors§

source§

impl<T: UniversalCopy> AsUPtr<T> for UVec<T>