# Enum ocl::enums::ProgramInfoResult [−] [src]

    pub enum ProgramInfoResult {
        ReferenceCount(u32),
        Context(Context),
        NumDevices(u32),
        Devices(Vec<DeviceId>),
        Source(String),
        BinarySizes(Vec<usize>),
        Binaries(Vec<Vec<u8>>),
        NumKernels(usize),
        KernelNames(String),
    }

A program info result.

## Variants

`ReferenceCount(u32)` `Context(Context)` `NumDevices(u32)` `Devices(Vec<DeviceId>)`

Contains a `Vec` containing the `DeviceId` associated with each device.

`Source(String)` `BinarySizes(Vec<usize>)`

Contains a `Vec` containing the size of the binary associated with each device.

`Binaries(Vec<Vec<u8>>)`

Contains a `Vec` containing the bytes of the binary associated with each device.

`NumKernels(usize)` `KernelNames(String)`

## Methods

### `impl ProgramInfoResult`
[src]

#### `pub fn from_bytes(
request: ProgramInfo,
result: Vec<u8>
) -> Result<ProgramInfoResult, Error>`
[src]

## Trait Implementations

### `impl Display for ProgramInfoResult`
[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`
[src]

Formats the value using the given formatter. Read more

### `impl From<ProgramInfoResult> for String`
[src]

#### `fn from(ir: ProgramInfoResult) -> String`
[src]

Performs the conversion.

### `impl Debug for ProgramInfoResult`
[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`
[src]

Formats the value using the given formatter. Read more

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)