# Enum ocl_core::types::enums::ContextInfoResult [−] [src]

    pub enum ContextInfoResult {
        ReferenceCount(u32),
        Devices(Vec<DeviceId>),
        Properties(ContextProperties),
        NumDevices(u32),
    }

A context info result.

[INCOMPLETE][FIXME]: Figure out what to do with the properties variant.

## Variants

`ReferenceCount(u32)` `Devices(Vec<DeviceId>)` `Properties(ContextProperties)` `NumDevices(u32)`

## Methods

### `impl ContextInfoResult`
[src]

#### `pub fn from_bytes(
request: ContextInfo,
result: Vec<u8>
) -> OclCoreResult<ContextInfoResult>`
[src]

#### `pub fn platform(&self) -> Option<PlatformId>`
[src]

## Trait Implementations

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

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

Formats the value using the given formatter. Read more

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

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

Formats the value using the given formatter. Read more

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

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

Performs the conversion.

# 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`)