PlatformInstance

Trait PlatformInstance 

Source
pub trait PlatformInstance:
    PartialEq
    + Eq
    + Clone
    + Copy
    + Send
    + Sync
    + Debug {
    // Required method
    fn select(size_hint: usize) -> Self;
}
Expand description

A ha-ndarray platform

Required Methods§

Source

fn select(size_hint: usize) -> Self

Select a specific sub-platform based on data size.

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 PlatformInstance for Platform

Available on non-crate feature opencl only.
Source§

impl PlatformInstance for Host

Source§

impl PlatformInstance for Heap

Source§

impl PlatformInstance for Stack