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

# Struct ocl_core::types::abs::Mem [−] [src]

    #[repr(C)]
    pub struct Mem(_);

cl_mem

## Methods

### `impl Mem`
[src]

#### `pub unsafe fn from_raw_create_ptr(ptr: cl_mem) -> Mem`
[src]

Only call this when passing the original newly created pointer directly from `clCreate...`. Do not use this to clone or copy.

#### `pub unsafe fn from_raw_copied_ptr(ptr: cl_mem) -> Mem`
[src]

Only call this when passing a copied pointer such as from an `clGet*****Info` function.

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

Returns a pointer, do not store it.

## Trait Implementations

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

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

Formats the value using the given formatter. Read more

### `impl Clone for Mem`
[src]

#### `fn clone(&self) -> Mem`
[src]

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0
[src]

Performs copy-assignment from `source`. Read more

### `impl Drop for Mem`
[src]

#### `fn drop(&mut self)`
[src]

Executes the destructor for this type. Read more

### `impl<T: OclPrm> AsMem<T> for Mem`
[src]

#### `fn as_mem(&self) -> &Mem`
[src]

### `impl<'a> MemCmdRw for Mem`
[src]

### `impl<'a> MemCmdRw for &'a Mem`
[src]

### `impl<'a> MemCmdRw for &'a mut Mem`
[src]

### `impl<'a> MemCmdAll for Mem`
[src]

### `impl<'a> MemCmdAll for &'a Mem`
[src]

### `impl<'a> MemCmdAll for &'a mut Mem`
[src]

### `impl Sync for Mem`
[src]

### `impl Send for Mem`
[src]

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