# Trait ocl_core::types::abs::ClVersions [−] [src]

    pub trait ClVersions {
        fn device_versions(&self) -> OclCoreResult<Vec<OpenclVersion>>;
        fn platform_version(&self) -> OclCoreResult<OpenclVersion>;

        fn verify_device_versions(
            &self,
            required_version: [u16; 2]
        ) -> OclCoreResult<()> { ... }
        fn verify_platform_version(
            &self,
            required_version: [u16; 2]
        ) -> OclCoreResult<()> { ... }
    }

Types with a fixed set of associated devices and an associated platform.

## Required Methods

### `fn device_versions(&self) -> OclCoreResult<Vec<OpenclVersion>>`

### `fn platform_version(&self) -> OclCoreResult<OpenclVersion>`

## Provided Methods

### `fn verify_device_versions(
&self,
required_version: [u16; 2]
) -> OclCoreResult<()>`

### `fn verify_platform_version(
&self,
required_version: [u16; 2]
) -> OclCoreResult<()>`

## Implementations on Foreign Types

### `impl ClVersions for cl_context`
[src]

#### `fn device_versions(&self) -> OclCoreResult<Vec<OpenclVersion>>`
[src]

#### `fn platform_version(&self) -> OclCoreResult<OpenclVersion>`
[src]

#### `fn verify_device_versions(
&self,
required_version: [u16; 2]
) -> OclCoreResult<()>`
[src]

#### `fn verify_platform_version(
&self,
required_version: [u16; 2]
) -> OclCoreResult<()>`
[src]

## Implementors

- [src]
  `impl ClVersions for PlatformId`
- [src]
  `impl ClVersions for DeviceId`
- [src]
  `impl ClVersions for Context`
- [src]
  `impl<'a> ClVersions for &'a Context`
- [src]
  `impl ClVersions for CommandQueue`
- [src]
  `impl ClVersions for Program`
- [src]
  `impl ClVersions for Kernel`

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