trait.OclVec.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta name="generator" content="rustdoc">
  7. <meta name="description" content="API documentation for the Rust `OclVec` trait in crate `ocl_core`.">
  8. <meta name="keywords" content="rust, rustlang, rust-lang, OclVec">
  9. <title>ocl_core::OclVec - Rust</title>
  10. <link rel="stylesheet" type="text/css" href="../normalize.css">
  11. <link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle">
  12. <link rel="stylesheet" type="text/css" href="../dark.css">
  13. <link rel="stylesheet" type="text/css" href="../main.css" id="themeStyle">
  14. <script src="../storage.js"></script>
  15. </head>
  16. <body class="rustdoc trait">
  17. <!--[if lte IE 8]>
  18. <div class="warning">
  19. This old browser is unsupported and will most likely display funky
  20. things.
  21. </div>
  22. <![endif]-->
  23. <nav class="sidebar">
  24. <div class="sidebar-menu">&#9776;</div>
  25. <p class='location'>Trait OclVec</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>ocl_core</a></p><script>window.sidebarCurrent = {name: 'OclVec', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
  26. </nav>
  27. <div class="theme-picker">
  28. <button id="theme-picker" aria-label="Pick another theme!">
  29. <img src="../brush.svg" width="18" alt="Pick another theme!">
  30. </button>
  31. <div id="theme-choices"></div>
  32. </div>
  33. <script src="../theme.js"></script>
  34. <nav class="sub">
  35. <form class="search-form js-only">
  36. <div class="search-container">
  37. <input class="search-input" name="search"
  38. autocomplete="off"
  39. placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
  40. type="search">
  41. </div>
  42. </form>
  43. </nav>
  44. <section id='main' class="content">
  45. <h1 class='fqn'><span class='in-band'>Trait <a href='index.html'>ocl_core</a>::<wbr><a class="trait" href=''>OclVec</a></span><span class='out-of-band'><span id='render-detail'>
  46. <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
  47. [<span class='inner'>&#x2212;</span>]
  48. </a>
  49. </span><a class='srclink' href='../src/ocl_core/lib.rs.html#275' title='goto source code'>[src]</a></span></h1>
  50. <pre class='rust trait'>pub unsafe trait OclVec: <a class="trait" href="../ocl_core/trait.OclPrm.html" title="trait ocl_core::OclPrm">OclPrm</a> + <a class="trait" href="../ocl_core/trait.OclNum.html" title="trait ocl_core::OclNum">OclNum</a> { }</pre><div class='docblock'><p>A vector type usable within <code>OpenCL</code> kernels.</p>
  51. <p>To describe the contents of buffers, etc., prefer using the more general
  52. <code>OclPrm</code> trait unless numeric operations are required.</p>
  53. </div>
  54. <h2 id='implementors' class='small-section-header'>
  55. Implementors<a href='#implementors' class='anchor'></a>
  56. </h2>
  57. <ul class='item-list' id='implementors-list'>
  58. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Char.html" title="struct ocl_core::Char">Char</a></code></li>
  59. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Char2.html" title="struct ocl_core::Char2">Char2</a></code></li>
  60. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Char3.html" title="struct ocl_core::Char3">Char3</a></code></li>
  61. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Char4.html" title="struct ocl_core::Char4">Char4</a></code></li>
  62. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Char8.html" title="struct ocl_core::Char8">Char8</a></code></li>
  63. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Char16.html" title="struct ocl_core::Char16">Char16</a></code></li>
  64. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Uchar.html" title="struct ocl_core::Uchar">Uchar</a></code></li>
  65. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Uchar2.html" title="struct ocl_core::Uchar2">Uchar2</a></code></li>
  66. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Uchar3.html" title="struct ocl_core::Uchar3">Uchar3</a></code></li>
  67. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Uchar4.html" title="struct ocl_core::Uchar4">Uchar4</a></code></li>
  68. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Uchar8.html" title="struct ocl_core::Uchar8">Uchar8</a></code></li>
  69. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Uchar16.html" title="struct ocl_core::Uchar16">Uchar16</a></code></li>
  70. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Short.html" title="struct ocl_core::Short">Short</a></code></li>
  71. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Short2.html" title="struct ocl_core::Short2">Short2</a></code></li>
  72. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Short3.html" title="struct ocl_core::Short3">Short3</a></code></li>
  73. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Short4.html" title="struct ocl_core::Short4">Short4</a></code></li>
  74. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Short8.html" title="struct ocl_core::Short8">Short8</a></code></li>
  75. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Short16.html" title="struct ocl_core::Short16">Short16</a></code></li>
  76. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Ushort.html" title="struct ocl_core::Ushort">Ushort</a></code></li>
  77. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Ushort2.html" title="struct ocl_core::Ushort2">Ushort2</a></code></li>
  78. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Ushort3.html" title="struct ocl_core::Ushort3">Ushort3</a></code></li>
  79. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Ushort4.html" title="struct ocl_core::Ushort4">Ushort4</a></code></li>
  80. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Ushort8.html" title="struct ocl_core::Ushort8">Ushort8</a></code></li>
  81. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Ushort16.html" title="struct ocl_core::Ushort16">Ushort16</a></code></li>
  82. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Int.html" title="struct ocl_core::Int">Int</a></code></li>
  83. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Int2.html" title="struct ocl_core::Int2">Int2</a></code></li>
  84. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Int3.html" title="struct ocl_core::Int3">Int3</a></code></li>
  85. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Int4.html" title="struct ocl_core::Int4">Int4</a></code></li>
  86. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Int8.html" title="struct ocl_core::Int8">Int8</a></code></li>
  87. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Int16.html" title="struct ocl_core::Int16">Int16</a></code></li>
  88. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Uint.html" title="struct ocl_core::Uint">Uint</a></code></li>
  89. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Uint2.html" title="struct ocl_core::Uint2">Uint2</a></code></li>
  90. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Uint3.html" title="struct ocl_core::Uint3">Uint3</a></code></li>
  91. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Uint4.html" title="struct ocl_core::Uint4">Uint4</a></code></li>
  92. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Uint8.html" title="struct ocl_core::Uint8">Uint8</a></code></li>
  93. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Uint16.html" title="struct ocl_core::Uint16">Uint16</a></code></li>
  94. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Long.html" title="struct ocl_core::Long">Long</a></code></li>
  95. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Long2.html" title="struct ocl_core::Long2">Long2</a></code></li>
  96. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Long3.html" title="struct ocl_core::Long3">Long3</a></code></li>
  97. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Long4.html" title="struct ocl_core::Long4">Long4</a></code></li>
  98. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Long8.html" title="struct ocl_core::Long8">Long8</a></code></li>
  99. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Long16.html" title="struct ocl_core::Long16">Long16</a></code></li>
  100. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Ulong.html" title="struct ocl_core::Ulong">Ulong</a></code></li>
  101. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Ulong2.html" title="struct ocl_core::Ulong2">Ulong2</a></code></li>
  102. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Ulong3.html" title="struct ocl_core::Ulong3">Ulong3</a></code></li>
  103. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Ulong4.html" title="struct ocl_core::Ulong4">Ulong4</a></code></li>
  104. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Ulong8.html" title="struct ocl_core::Ulong8">Ulong8</a></code></li>
  105. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Ulong16.html" title="struct ocl_core::Ulong16">Ulong16</a></code></li>
  106. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Float.html" title="struct ocl_core::Float">Float</a></code></li>
  107. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Float2.html" title="struct ocl_core::Float2">Float2</a></code></li>
  108. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Float3.html" title="struct ocl_core::Float3">Float3</a></code></li>
  109. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Float4.html" title="struct ocl_core::Float4">Float4</a></code></li>
  110. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Float8.html" title="struct ocl_core::Float8">Float8</a></code></li>
  111. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Float16.html" title="struct ocl_core::Float16">Float16</a></code></li>
  112. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Double.html" title="struct ocl_core::Double">Double</a></code></li>
  113. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Double2.html" title="struct ocl_core::Double2">Double2</a></code></li>
  114. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Double3.html" title="struct ocl_core::Double3">Double3</a></code></li>
  115. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Double4.html" title="struct ocl_core::Double4">Double4</a></code></li>
  116. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Double8.html" title="struct ocl_core::Double8">Double8</a></code></li>
  117. <li><div class='out-of-band'><a class='srclink' href='../src/ocl_core/lib.rs.html#226' title='goto source code'>[src]</a></div><code>impl OclVec for <a class="struct" href="../ocl_core/struct.Double16.html" title="struct ocl_core::Double16">Double16</a></code></li>
  118. </ul><script type="text/javascript" async
  119. src="../implementors/ocl_core/trait.OclVec.js">
  120. </script></section>
  121. <section id='search' class="content hidden"></section>
  122. <section class="footer"></section>
  123. <aside id="help" class="hidden">
  124. <div>
  125. <h1 class="hidden">Help</h1>
  126. <div class="shortcuts">
  127. <h2>Keyboard Shortcuts</h2>
  128. <dl>
  129. <dt><kbd>?</kbd></dt>
  130. <dd>Show this help dialog</dd>
  131. <dt><kbd>S</kbd></dt>
  132. <dd>Focus the search field</dd>
  133. <dt><kbd>↑</kbd></dt>
  134. <dd>Move up in search results</dd>
  135. <dt><kbd>↓</kbd></dt>
  136. <dd>Move down in search results</dd>
  137. <dt><kbd>↹</kbd></dt>
  138. <dd>Switch tab</dd>
  139. <dt><kbd>&#9166;</kbd></dt>
  140. <dd>Go to active search result</dd>
  141. <dt><kbd>+</kbd></dt>
  142. <dd>Expand all sections</dd>
  143. <dt><kbd>-</kbd></dt>
  144. <dd>Collapse all sections</dd>
  145. </dl>
  146. </div>
  147. <div class="infos">
  148. <h2>Search Tricks</h2>
  149. <p>
  150. Prefix searches with a type followed by a colon (e.g.
  151. <code>fn:</code>) to restrict the search to a given type.
  152. </p>
  153. <p>
  154. Accepted types are: <code>fn</code>, <code>mod</code>,
  155. <code>struct</code>, <code>enum</code>,
  156. <code>trait</code>, <code>type</code>, <code>macro</code>,
  157. and <code>const</code>.
  158. </p>
  159. <p>
  160. Search functions by type signature (e.g.
  161. <code>vec -> usize</code> or <code>* -> vec</code>)
  162. </p>
  163. </div>
  164. </div>
  165. </aside>
  166. <script>
  167. window.rootPath = "../";
  168. window.currentCrate = "ocl_core";
  169. </script>
  170. <script src="../main.js"></script>
  171. <script defer src="../search-index.js"></script>
  172. </body>
  173. </html>