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§
fn as_raw_PlatformInfo(&self) -> *const c_void
Provided Methods§
fn name(&self) -> Result<String>
fn vendor(&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>
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.