# ocl_core::types::abs::ClContextPtr - Rust
API documentation for the Rust `ClContextPtr` trait in crate `ocl_core`.
Keywords: rust, rustlang, rust-lang, ClContextPtr

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

    pub unsafe trait ClContextPtr: Debug + Copy {
        fn as_ptr(&self) -> cl_context;
    }

Types with a copy of a context pointer.

## Required Methods

### `fn as_ptr(&self) -> cl_context`

## Implementations on Foreign Types

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

#### `fn as_ptr(&self) -> cl_context`
[src]

### `impl<'a> ClContextPtr for &'a cl_context`
[src]

#### `fn as_ptr(&self) -> cl_context`
[src]

## Implementors

- [src]
  `impl<'a> ClContextPtr for &'a Context`
- [src]
  `impl<'a> ClContextPtr for &'a CommandQueue`

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