Trait Instance

Source
pub trait Instance<C: Class>: Sized + 'static {
    // Required methods
    fn source(cache: &mut HashSet<u64>) -> String;
    fn inst_name() -> String;
}
Expand description

An implementation of an interface in OpenCL.

Required Methods§

Source

fn source(cache: &mut HashSet<u64>) -> String

Associated OpenCL code that contains necessary function definition.

Source

fn inst_name() -> String

Name of the instance of the class (e.g. sphere as instance of class 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§