# ocl::enums::PlatformInfoResult - Rust
API documentation for the Rust `PlatformInfoResult` enum in crate `ocl`.
Keywords: rust, rustlang, rust-lang, PlatformInfoResult

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

    pub enum PlatformInfoResult {
        Profile(String),
        Version(String),
        Name(String),
        Vendor(String),
        Extensions(String),
    }

Platform info result.

## Variants

`Profile(String)` `Version(String)` `Name(String)` `Vendor(String)` `Extensions(String)`

## Methods

### `impl PlatformInfoResult`
[src]

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

#### `pub fn as_opencl_version(&self) -> Result<OpenclVersion, Error>`
[src]

Parse the `Version` string and get a numeric result as `OpenclVersion`.

## Trait Implementations

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

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

Formats the value using the given formatter. Read more

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

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

Performs the conversion.

### `impl Debug for PlatformInfoResult`
[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`)