Trait PlatformInfoTraitConst

Source
pub trait PlatformInfoTraitConst {
    // Required method
    fn as_raw_PlatformInfo(&self) -> *const c_void;

    // Provided methods
    fn name(&self) -> Result<String> { ... }
    fn vendor(&self) -> Result<String> { ... }
    fn version(&self) -> Result<String> { ... }
    fn version_major(&self) -> Result<i32> { ... }
    fn version_minor(&self) -> Result<i32> { ... }
    fn device_number(&self) -> Result<i32> { ... }
    fn get_device(&self, device: &mut impl DeviceTrait, d: i32) -> Result<()> { ... }
    fn empty(&self) -> Result<bool> { ... }
}
Expand description

Constant methods for core::PlatformInfo

Required Methods§

Provided Methods§

Source

fn name(&self) -> Result<String>

Source

fn vendor(&self) -> Result<String>

Source

fn version(&self) -> Result<String>

See CL_PLATFORM_VERSION

Source

fn version_major(&self) -> Result<i32>

Source

fn version_minor(&self) -> Result<i32>

Source

fn device_number(&self) -> Result<i32>

Source

fn get_device(&self, device: &mut impl DeviceTrait, d: i32) -> Result<()>

Source

fn empty(&self) -> Result<bool>

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§