Skip to main content

Pointer

Trait Pointer 

pub trait Pointer<D, const RANK: usize>:
    Sized
    + Copy
    + Clone
    + Dtype
    + AddOffsets<i32, RANK, Self::I32Tensor>
    + Add
where D: Dtype,
{ type I32Tensor: I32Tensor<RANK>; }
Expand description

A device pointer to elements of dtype D. A Pointer is itself a Dtype (so it can be stored in tensors), but has no BITS requirement.

Required Associated Types§

type I32Tensor: I32Tensor<RANK>

The i32 tensor type used to offset this pointer.

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§

Source§

impl<D: Dtype, const RANK: usize> Pointer<D, RANK> for LlvmPointer<D>