Trait Class

Source
pub trait Class {
    // Required methods
    fn name() -> String;
    fn methods() -> Vec<String>;
}
Expand description

An interface in OpenCL code.

Required Methods§

Source

fn name() -> String

Class name (e.g. shape)

Source

fn methods() -> Vec<String>

List of methods of the class.

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§