Info

Trait Info 

Source
pub trait Info: Sealed {
    type Item;
    type Target;

    // Required method
    fn get_item(target: &Self::Target) -> Self::Item;
}
Expand description

Types which can return an Item of information for a given Target.

Required Associated Types§

Required Methods§

Source

fn get_item(target: &Self::Target) -> Self::Item

Returns information for a given Target.

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§

Source§

impl Info for DeviceType

Source§

type Item = DeviceType

Source§

type Target = Device

Source§

impl Info for oneapi_rs::info::device::Name

Source§

impl Info for oneapi_rs::info::device::Version

Source§

impl Info for CommandExecutionStatus

Source§

type Item = EventCommandStatus

Source§

type Target = Event

Source§

impl Info for oneapi_rs::info::platform::Name

Source§

impl Info for Vendor

Source§

impl Info for oneapi_rs::info::platform::Version