# Trait ocl_core::OclNum [−] [src]

    pub unsafe trait OclNum: Debug + Display + Clone + Copy + Default + PartialOrd + Zero<Output = Self> + One<Output = Self> + Add<Self, Output = Self> + Sub<Self, Output = Self> + Mul<Self, Output = Self> + Div<Self, Output = Self> + Rem<Self, Output = Self> + PartialEq<Self> + AddAssign<Self> + SubAssign<Self> + MulAssign<Self> + DivAssign<Self> + RemAssign<Self> + Sum<Self> + Product<Self> + Send + Sync + 'static { }

A set of traits common to numeric built-in OpenCL scalar and vector primitives.

To describe the contents of buffers, etc., prefer using the more general `OclPrm` trait unless numeric operations are required.

## Implementations on Foreign Types

### `impl OclNum for u8`
[src]

### `impl OclNum for i8`
[src]

### `impl OclNum for u16`
[src]

### `impl OclNum for i16`
[src]

### `impl OclNum for u32`
[src]

### `impl OclNum for i32`
[src]

### `impl OclNum for u64`
[src]

### `impl OclNum for i64`
[src]

### `impl OclNum for usize`
[src]

### `impl OclNum for isize`
[src]

### `impl OclNum for f32`
[src]

### `impl OclNum for f64`
[src]

## Implementors

- [src]
  `impl OclNum for Char`
- [src]
  `impl OclNum for Char2`
- [src]
  `impl OclNum for Char3`
- [src]
  `impl OclNum for Char4`
- [src]
  `impl OclNum for Char8`
- [src]
  `impl OclNum for Char16`
- [src]
  `impl OclNum for Uchar`
- [src]
  `impl OclNum for Uchar2`
- [src]
  `impl OclNum for Uchar3`
- [src]
  `impl OclNum for Uchar4`
- [src]
  `impl OclNum for Uchar8`
- [src]
  `impl OclNum for Uchar16`
- [src]
  `impl OclNum for Short`
- [src]
  `impl OclNum for Short2`
- [src]
  `impl OclNum for Short3`
- [src]
  `impl OclNum for Short4`
- [src]
  `impl OclNum for Short8`
- [src]
  `impl OclNum for Short16`
- [src]
  `impl OclNum for Ushort`
- [src]
  `impl OclNum for Ushort2`
- [src]
  `impl OclNum for Ushort3`
- [src]
  `impl OclNum for Ushort4`
- [src]
  `impl OclNum for Ushort8`
- [src]
  `impl OclNum for Ushort16`
- [src]
  `impl OclNum for Int`
- [src]
  `impl OclNum for Int2`
- [src]
  `impl OclNum for Int3`
- [src]
  `impl OclNum for Int4`
- [src]
  `impl OclNum for Int8`
- [src]
  `impl OclNum for Int16`
- [src]
  `impl OclNum for Uint`
- [src]
  `impl OclNum for Uint2`
- [src]
  `impl OclNum for Uint3`
- [src]
  `impl OclNum for Uint4`
- [src]
  `impl OclNum for Uint8`
- [src]
  `impl OclNum for Uint16`
- [src]
  `impl OclNum for Long`
- [src]
  `impl OclNum for Long2`
- [src]
  `impl OclNum for Long3`
- [src]
  `impl OclNum for Long4`
- [src]
  `impl OclNum for Long8`
- [src]
  `impl OclNum for Long16`
- [src]
  `impl OclNum for Ulong`
- [src]
  `impl OclNum for Ulong2`
- [src]
  `impl OclNum for Ulong3`
- [src]
  `impl OclNum for Ulong4`
- [src]
  `impl OclNum for Ulong8`
- [src]
  `impl OclNum for Ulong16`
- [src]
  `impl OclNum for Float`
- [src]
  `impl OclNum for Float2`
- [src]
  `impl OclNum for Float3`
- [src]
  `impl OclNum for Float4`
- [src]
  `impl OclNum for Float8`
- [src]
  `impl OclNum for Float16`
- [src]
  `impl OclNum for Double`
- [src]
  `impl OclNum for Double2`
- [src]
  `impl OclNum for Double3`
- [src]
  `impl OclNum for Double4`
- [src]
  `impl OclNum for Double8`
- [src]
  `impl OclNum for Double16`

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