Trait ClObject

Source
pub unsafe trait ClObject:
    Sized
    + Clone
    + Copy
    + Debug
    + CheckValidClObject
    + PartialEq {
    // Required method
    fn type_name(&self) -> &'static str;

    // Provided method
    fn address(&self) -> String { ... }
}

Required Methods§

Source

fn type_name(&self) -> &'static str

Provided Methods§

Source

fn address(&self) -> String

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.

Implementations on Foreign Types§

Source§

impl ClObject for cl_command_queue

Source§

fn type_name(&self) -> &'static str

Source§

impl ClObject for cl_context

Source§

fn type_name(&self) -> &'static str

Source§

impl ClObject for cl_device_id

Source§

fn type_name(&self) -> &'static str

Source§

impl ClObject for cl_event

Source§

fn type_name(&self) -> &'static str

Source§

impl ClObject for cl_kernel

Source§

fn type_name(&self) -> &'static str

Source§

impl ClObject for cl_mem

Source§

fn type_name(&self) -> &'static str

Source§

impl ClObject for cl_platform_id

Source§

fn type_name(&self) -> &'static str

Source§

impl ClObject for cl_program

Source§

fn type_name(&self) -> &'static str

Implementors§