enum.DeviceInfo.html 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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 `DeviceInfo` enum in crate `ocl`.">
  8. <meta name="keywords" content="rust, rustlang, rust-lang, DeviceInfo">
  9. <title>ocl::enums::DeviceInfo - 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 enum">
  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'>Enum DeviceInfo</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Type">Type</a><a href="#variant.VendorId">VendorId</a><a href="#variant.MaxComputeUnits">MaxComputeUnits</a><a href="#variant.MaxWorkItemDimensions">MaxWorkItemDimensions</a><a href="#variant.MaxWorkGroupSize">MaxWorkGroupSize</a><a href="#variant.MaxWorkItemSizes">MaxWorkItemSizes</a><a href="#variant.PreferredVectorWidthChar">PreferredVectorWidthChar</a><a href="#variant.PreferredVectorWidthShort">PreferredVectorWidthShort</a><a href="#variant.PreferredVectorWidthInt">PreferredVectorWidthInt</a><a href="#variant.PreferredVectorWidthLong">PreferredVectorWidthLong</a><a href="#variant.PreferredVectorWidthFloat">PreferredVectorWidthFloat</a><a href="#variant.PreferredVectorWidthDouble">PreferredVectorWidthDouble</a><a href="#variant.MaxClockFrequency">MaxClockFrequency</a><a href="#variant.AddressBits">AddressBits</a><a href="#variant.MaxReadImageArgs">MaxReadImageArgs</a><a href="#variant.MaxWriteImageArgs">MaxWriteImageArgs</a><a href="#variant.MaxMemAllocSize">MaxMemAllocSize</a><a href="#variant.Image2dMaxWidth">Image2dMaxWidth</a><a href="#variant.Image2dMaxHeight">Image2dMaxHeight</a><a href="#variant.Image3dMaxWidth">Image3dMaxWidth</a><a href="#variant.Image3dMaxHeight">Image3dMaxHeight</a><a href="#variant.Image3dMaxDepth">Image3dMaxDepth</a><a href="#variant.ImageSupport">ImageSupport</a><a href="#variant.MaxParameterSize">MaxParameterSize</a><a href="#variant.MaxSamplers">MaxSamplers</a><a href="#variant.MemBaseAddrAlign">MemBaseAddrAlign</a><a href="#variant.MinDataTypeAlignSize">MinDataTypeAlignSize</a><a href="#variant.SingleFpConfig">SingleFpConfig</a><a href="#variant.GlobalMemCacheType">GlobalMemCacheType</a><a href="#variant.GlobalMemCachelineSize">GlobalMemCachelineSize</a><a href="#variant.GlobalMemCacheSize">GlobalMemCacheSize</a><a href="#variant.GlobalMemSize">GlobalMemSize</a><a href="#variant.MaxConstantBufferSize">MaxConstantBufferSize</a><a href="#variant.MaxConstantArgs">MaxConstantArgs</a><a href="#variant.LocalMemType">LocalMemType</a><a href="#variant.LocalMemSize">LocalMemSize</a><a href="#variant.ErrorCorrectionSupport">ErrorCorrectionSupport</a><a href="#variant.ProfilingTimerResolution">ProfilingTimerResolution</a><a href="#variant.EndianLittle">EndianLittle</a><a href="#variant.Available">Available</a><a href="#variant.CompilerAvailable">CompilerAvailable</a><a href="#variant.ExecutionCapabilities">ExecutionCapabilities</a><a href="#variant.QueueProperties">QueueProperties</a><a href="#variant.Name">Name</a><a href="#variant.Vendor">Vendor</a><a href="#variant.DriverVersion">DriverVersion</a><a href="#variant.Profile">Profile</a><a href="#variant.Version">Version</a><a href="#variant.Extensions">Extensions</a><a href="#variant.Platform">Platform</a><a href="#variant.DoubleFpConfig">DoubleFpConfig</a><a href="#variant.HalfFpConfig">HalfFpConfig</a><a href="#variant.PreferredVectorWidthHalf">PreferredVectorWidthHalf</a><a href="#variant.HostUnifiedMemory">HostUnifiedMemory</a><a href="#variant.NativeVectorWidthChar">NativeVectorWidthChar</a><a href="#variant.NativeVectorWidthShort">NativeVectorWidthShort</a><a href="#variant.NativeVectorWidthInt">NativeVectorWidthInt</a><a href="#variant.NativeVectorWidthLong">NativeVectorWidthLong</a><a href="#variant.NativeVectorWidthFloat">NativeVectorWidthFloat</a><a href="#variant.NativeVectorWidthDouble">NativeVectorWidthDouble</a><a href="#variant.NativeVectorWidthHalf">NativeVectorWidthHalf</a><a href="#variant.OpenclCVersion">OpenclCVersion</a><a href="#variant.LinkerAvailable">LinkerAvailable</a><a href="#variant.BuiltInKernels">BuiltInKernels</a><a href="#variant.ImageMaxBufferSize">ImageMaxBufferSize</a><a href="#variant.ImageMaxArraySize">ImageMaxArraySize</a><a href="#variant.ParentDevice">ParentDevice</a><a href="#variant.PartitionMaxSubDevices">PartitionMaxSubDevices</a><a href="#variant.PartitionProperties">PartitionProperties</a><a href="#variant.PartitionAffinityDomain">PartitionAffinityDomain</a><a href="#variant.PartitionType">PartitionType</a><a href="#variant.ReferenceCount">ReferenceCount</a><a href="#variant.PreferredInteropUserSync">PreferredInteropUserSync</a><a href="#variant.PrintfBufferSize">PrintfBufferSize</a><a href="#variant.ImagePitchAlignment">ImagePitchAlignment</a><a href="#variant.ImageBaseAddressAlignment">ImageBaseAddressAlignment</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3CDeviceInfo%3E">PartialEq&lt;DeviceInfo&gt;</a><a href="#impl-Hash">Hash</a><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-FromPrimitive">FromPrimitive</a><a href="#impl-Debug">Debug</a></div></div><p class='location'><a href='../index.html'>ocl</a>::<wbr><a href='index.html'>enums</a></p><script>window.sidebarCurrent = {name: 'DeviceInfo', ty: 'enum', 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'>Enum <a href='../index.html'>ocl</a>::<wbr><a href='index.html'>enums</a>::<wbr><a class="enum" href=''>DeviceInfo</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></span></h1>
  50. <pre class='rust enum'><div class="docblock attributes">#[repr(C)]
  51. </div>pub enum DeviceInfo {
  52. Type,
  53. VendorId,
  54. MaxComputeUnits,
  55. MaxWorkItemDimensions,
  56. MaxWorkGroupSize,
  57. MaxWorkItemSizes,
  58. PreferredVectorWidthChar,
  59. PreferredVectorWidthShort,
  60. PreferredVectorWidthInt,
  61. PreferredVectorWidthLong,
  62. PreferredVectorWidthFloat,
  63. PreferredVectorWidthDouble,
  64. MaxClockFrequency,
  65. AddressBits,
  66. MaxReadImageArgs,
  67. MaxWriteImageArgs,
  68. MaxMemAllocSize,
  69. Image2dMaxWidth,
  70. Image2dMaxHeight,
  71. Image3dMaxWidth,
  72. Image3dMaxHeight,
  73. Image3dMaxDepth,
  74. ImageSupport,
  75. MaxParameterSize,
  76. MaxSamplers,
  77. MemBaseAddrAlign,
  78. MinDataTypeAlignSize,
  79. SingleFpConfig,
  80. GlobalMemCacheType,
  81. GlobalMemCachelineSize,
  82. GlobalMemCacheSize,
  83. GlobalMemSize,
  84. MaxConstantBufferSize,
  85. MaxConstantArgs,
  86. LocalMemType,
  87. LocalMemSize,
  88. ErrorCorrectionSupport,
  89. ProfilingTimerResolution,
  90. EndianLittle,
  91. Available,
  92. CompilerAvailable,
  93. ExecutionCapabilities,
  94. QueueProperties,
  95. Name,
  96. Vendor,
  97. DriverVersion,
  98. Profile,
  99. Version,
  100. Extensions,
  101. Platform,
  102. DoubleFpConfig,
  103. HalfFpConfig,
  104. PreferredVectorWidthHalf,
  105. HostUnifiedMemory,
  106. NativeVectorWidthChar,
  107. NativeVectorWidthShort,
  108. NativeVectorWidthInt,
  109. NativeVectorWidthLong,
  110. NativeVectorWidthFloat,
  111. NativeVectorWidthDouble,
  112. NativeVectorWidthHalf,
  113. OpenclCVersion,
  114. LinkerAvailable,
  115. BuiltInKernels,
  116. ImageMaxBufferSize,
  117. ImageMaxArraySize,
  118. ParentDevice,
  119. PartitionMaxSubDevices,
  120. PartitionProperties,
  121. PartitionAffinityDomain,
  122. PartitionType,
  123. ReferenceCount,
  124. PreferredInteropUserSync,
  125. PrintfBufferSize,
  126. ImagePitchAlignment,
  127. ImageBaseAddressAlignment,
  128. }</pre><div class='docblock'><p>cl_device_info</p>
  129. </div><h2 id='variants' class='variants small-section-header'>
  130. Variants<a href='#variants' class='anchor'></a></h2>
  131. <span id="variant.Type" class="variant small-section-header"><a href="#variant.Type" class="anchor field"></a><span id='Type.v' class='invisible'><code>Type</code></span></span><span id="variant.VendorId" class="variant small-section-header"><a href="#variant.VendorId" class="anchor field"></a><span id='VendorId.v' class='invisible'><code>VendorId</code></span></span><span id="variant.MaxComputeUnits" class="variant small-section-header"><a href="#variant.MaxComputeUnits" class="anchor field"></a><span id='MaxComputeUnits.v' class='invisible'><code>MaxComputeUnits</code></span></span><span id="variant.MaxWorkItemDimensions" class="variant small-section-header"><a href="#variant.MaxWorkItemDimensions" class="anchor field"></a><span id='MaxWorkItemDimensions.v' class='invisible'><code>MaxWorkItemDimensions</code></span></span><span id="variant.MaxWorkGroupSize" class="variant small-section-header"><a href="#variant.MaxWorkGroupSize" class="anchor field"></a><span id='MaxWorkGroupSize.v' class='invisible'><code>MaxWorkGroupSize</code></span></span><span id="variant.MaxWorkItemSizes" class="variant small-section-header"><a href="#variant.MaxWorkItemSizes" class="anchor field"></a><span id='MaxWorkItemSizes.v' class='invisible'><code>MaxWorkItemSizes</code></span></span><span id="variant.PreferredVectorWidthChar" class="variant small-section-header"><a href="#variant.PreferredVectorWidthChar" class="anchor field"></a><span id='PreferredVectorWidthChar.v' class='invisible'><code>PreferredVectorWidthChar</code></span></span><span id="variant.PreferredVectorWidthShort" class="variant small-section-header"><a href="#variant.PreferredVectorWidthShort" class="anchor field"></a><span id='PreferredVectorWidthShort.v' class='invisible'><code>PreferredVectorWidthShort</code></span></span><span id="variant.PreferredVectorWidthInt" class="variant small-section-header"><a href="#variant.PreferredVectorWidthInt" class="anchor field"></a><span id='PreferredVectorWidthInt.v' class='invisible'><code>PreferredVectorWidthInt</code></span></span><span id="variant.PreferredVectorWidthLong" class="variant small-section-header"><a href="#variant.PreferredVectorWidthLong" class="anchor field"></a><span id='PreferredVectorWidthLong.v' class='invisible'><code>PreferredVectorWidthLong</code></span></span><span id="variant.PreferredVectorWidthFloat" class="variant small-section-header"><a href="#variant.PreferredVectorWidthFloat" class="anchor field"></a><span id='PreferredVectorWidthFloat.v' class='invisible'><code>PreferredVectorWidthFloat</code></span></span><span id="variant.PreferredVectorWidthDouble" class="variant small-section-header"><a href="#variant.PreferredVectorWidthDouble" class="anchor field"></a><span id='PreferredVectorWidthDouble.v' class='invisible'><code>PreferredVectorWidthDouble</code></span></span><span id="variant.MaxClockFrequency" class="variant small-section-header"><a href="#variant.MaxClockFrequency" class="anchor field"></a><span id='MaxClockFrequency.v' class='invisible'><code>MaxClockFrequency</code></span></span><span id="variant.AddressBits" class="variant small-section-header"><a href="#variant.AddressBits" class="anchor field"></a><span id='AddressBits.v' class='invisible'><code>AddressBits</code></span></span><span id="variant.MaxReadImageArgs" class="variant small-section-header"><a href="#variant.MaxReadImageArgs" class="anchor field"></a><span id='MaxReadImageArgs.v' class='invisible'><code>MaxReadImageArgs</code></span></span><span id="variant.MaxWriteImageArgs" class="variant small-section-header"><a href="#variant.MaxWriteImageArgs" class="anchor field"></a><span id='MaxWriteImageArgs.v' class='invisible'><code>MaxWriteImageArgs</code></span></span><span id="variant.MaxMemAllocSize" class="variant small-section-header"><a href="#variant.MaxMemAllocSize" class="anchor field"></a><span id='MaxMemAllocSize.v' class='invisible'><code>MaxMemAllocSize</code></span></span><span id="variant.Image2dMaxWidth" class="variant small-section-header"><a href="#variant.Image2dMaxWidth" class="anchor field"></a><span id='Image2dMaxWidth.v' class='invisible'><code>Image2dMaxWidth</code></span></span><span id="variant.Image2dMaxHeight" class="variant small-section-header"><a href="#variant.Image2dMaxHeight" class="anchor field"></a><span id='Image2dMaxHeight.v' class='invisible'><code>Image2dMaxHeight</code></span></span><span id="variant.Image3dMaxWidth" class="variant small-section-header"><a href="#variant.Image3dMaxWidth" class="anchor field"></a><span id='Image3dMaxWidth.v' class='invisible'><code>Image3dMaxWidth</code></span></span><span id="variant.Image3dMaxHeight" class="variant small-section-header"><a href="#variant.Image3dMaxHeight" class="anchor field"></a><span id='Image3dMaxHeight.v' class='invisible'><code>Image3dMaxHeight</code></span></span><span id="variant.Image3dMaxDepth" class="variant small-section-header"><a href="#variant.Image3dMaxDepth" class="anchor field"></a><span id='Image3dMaxDepth.v' class='invisible'><code>Image3dMaxDepth</code></span></span><span id="variant.ImageSupport" class="variant small-section-header"><a href="#variant.ImageSupport" class="anchor field"></a><span id='ImageSupport.v' class='invisible'><code>ImageSupport</code></span></span><span id="variant.MaxParameterSize" class="variant small-section-header"><a href="#variant.MaxParameterSize" class="anchor field"></a><span id='MaxParameterSize.v' class='invisible'><code>MaxParameterSize</code></span></span><span id="variant.MaxSamplers" class="variant small-section-header"><a href="#variant.MaxSamplers" class="anchor field"></a><span id='MaxSamplers.v' class='invisible'><code>MaxSamplers</code></span></span><span id="variant.MemBaseAddrAlign" class="variant small-section-header"><a href="#variant.MemBaseAddrAlign" class="anchor field"></a><span id='MemBaseAddrAlign.v' class='invisible'><code>MemBaseAddrAlign</code></span></span><span id="variant.MinDataTypeAlignSize" class="variant small-section-header"><a href="#variant.MinDataTypeAlignSize" class="anchor field"></a><span id='MinDataTypeAlignSize.v' class='invisible'><code>MinDataTypeAlignSize</code></span></span><span id="variant.SingleFpConfig" class="variant small-section-header"><a href="#variant.SingleFpConfig" class="anchor field"></a><span id='SingleFpConfig.v' class='invisible'><code>SingleFpConfig</code></span></span><span id="variant.GlobalMemCacheType" class="variant small-section-header"><a href="#variant.GlobalMemCacheType" class="anchor field"></a><span id='GlobalMemCacheType.v' class='invisible'><code>GlobalMemCacheType</code></span></span><span id="variant.GlobalMemCachelineSize" class="variant small-section-header"><a href="#variant.GlobalMemCachelineSize" class="anchor field"></a><span id='GlobalMemCachelineSize.v' class='invisible'><code>GlobalMemCachelineSize</code></span></span><span id="variant.GlobalMemCacheSize" class="variant small-section-header"><a href="#variant.GlobalMemCacheSize" class="anchor field"></a><span id='GlobalMemCacheSize.v' class='invisible'><code>GlobalMemCacheSize</code></span></span><span id="variant.GlobalMemSize" class="variant small-section-header"><a href="#variant.GlobalMemSize" class="anchor field"></a><span id='GlobalMemSize.v' class='invisible'><code>GlobalMemSize</code></span></span><span id="variant.MaxConstantBufferSize" class="variant small-section-header"><a href="#variant.MaxConstantBufferSize" class="anchor field"></a><span id='MaxConstantBufferSize.v' class='invisible'><code>MaxConstantBufferSize</code></span></span><span id="variant.MaxConstantArgs" class="variant small-section-header"><a href="#variant.MaxConstantArgs" class="anchor field"></a><span id='MaxConstantArgs.v' class='invisible'><code>MaxConstantArgs</code></span></span><span id="variant.LocalMemType" class="variant small-section-header"><a href="#variant.LocalMemType" class="anchor field"></a><span id='LocalMemType.v' class='invisible'><code>LocalMemType</code></span></span><span id="variant.LocalMemSize" class="variant small-section-header"><a href="#variant.LocalMemSize" class="anchor field"></a><span id='LocalMemSize.v' class='invisible'><code>LocalMemSize</code></span></span><span id="variant.ErrorCorrectionSupport" class="variant small-section-header"><a href="#variant.ErrorCorrectionSupport" class="anchor field"></a><span id='ErrorCorrectionSupport.v' class='invisible'><code>ErrorCorrectionSupport</code></span></span><span id="variant.ProfilingTimerResolution" class="variant small-section-header"><a href="#variant.ProfilingTimerResolution" class="anchor field"></a><span id='ProfilingTimerResolution.v' class='invisible'><code>ProfilingTimerResolution</code></span></span><span id="variant.EndianLittle" class="variant small-section-header"><a href="#variant.EndianLittle" class="anchor field"></a><span id='EndianLittle.v' class='invisible'><code>EndianLittle</code></span></span><span id="variant.Available" class="variant small-section-header"><a href="#variant.Available" class="anchor field"></a><span id='Available.v' class='invisible'><code>Available</code></span></span><span id="variant.CompilerAvailable" class="variant small-section-header"><a href="#variant.CompilerAvailable" class="anchor field"></a><span id='CompilerAvailable.v' class='invisible'><code>CompilerAvailable</code></span></span><span id="variant.ExecutionCapabilities" class="variant small-section-header"><a href="#variant.ExecutionCapabilities" class="anchor field"></a><span id='ExecutionCapabilities.v' class='invisible'><code>ExecutionCapabilities</code></span></span><span id="variant.QueueProperties" class="variant small-section-header"><a href="#variant.QueueProperties" class="anchor field"></a><span id='QueueProperties.v' class='invisible'><code>QueueProperties</code></span></span><span id="variant.Name" class="variant small-section-header"><a href="#variant.Name" class="anchor field"></a><span id='Name.v' class='invisible'><code>Name</code></span></span><span id="variant.Vendor" class="variant small-section-header"><a href="#variant.Vendor" class="anchor field"></a><span id='Vendor.v' class='invisible'><code>Vendor</code></span></span><span id="variant.DriverVersion" class="variant small-section-header"><a href="#variant.DriverVersion" class="anchor field"></a><span id='DriverVersion.v' class='invisible'><code>DriverVersion</code></span></span><span id="variant.Profile" class="variant small-section-header"><a href="#variant.Profile" class="anchor field"></a><span id='Profile.v' class='invisible'><code>Profile</code></span></span><span id="variant.Version" class="variant small-section-header"><a href="#variant.Version" class="anchor field"></a><span id='Version.v' class='invisible'><code>Version</code></span></span><span id="variant.Extensions" class="variant small-section-header"><a href="#variant.Extensions" class="anchor field"></a><span id='Extensions.v' class='invisible'><code>Extensions</code></span></span><span id="variant.Platform" class="variant small-section-header"><a href="#variant.Platform" class="anchor field"></a><span id='Platform.v' class='invisible'><code>Platform</code></span></span><span id="variant.DoubleFpConfig" class="variant small-section-header"><a href="#variant.DoubleFpConfig" class="anchor field"></a><span id='DoubleFpConfig.v' class='invisible'><code>DoubleFpConfig</code></span></span><span id="variant.HalfFpConfig" class="variant small-section-header"><a href="#variant.HalfFpConfig" class="anchor field"></a><span id='HalfFpConfig.v' class='invisible'><code>HalfFpConfig</code></span></span><span id="variant.PreferredVectorWidthHalf" class="variant small-section-header"><a href="#variant.PreferredVectorWidthHalf" class="anchor field"></a><span id='PreferredVectorWidthHalf.v' class='invisible'><code>PreferredVectorWidthHalf</code></span></span><span id="variant.HostUnifiedMemory" class="variant small-section-header"><a href="#variant.HostUnifiedMemory" class="anchor field"></a><span id='HostUnifiedMemory.v' class='invisible'><code>HostUnifiedMemory</code></span></span><span id="variant.NativeVectorWidthChar" class="variant small-section-header"><a href="#variant.NativeVectorWidthChar" class="anchor field"></a><span id='NativeVectorWidthChar.v' class='invisible'><code>NativeVectorWidthChar</code></span></span><span id="variant.NativeVectorWidthShort" class="variant small-section-header"><a href="#variant.NativeVectorWidthShort" class="anchor field"></a><span id='NativeVectorWidthShort.v' class='invisible'><code>NativeVectorWidthShort</code></span></span><span id="variant.NativeVectorWidthInt" class="variant small-section-header"><a href="#variant.NativeVectorWidthInt" class="anchor field"></a><span id='NativeVectorWidthInt.v' class='invisible'><code>NativeVectorWidthInt</code></span></span><span id="variant.NativeVectorWidthLong" class="variant small-section-header"><a href="#variant.NativeVectorWidthLong" class="anchor field"></a><span id='NativeVectorWidthLong.v' class='invisible'><code>NativeVectorWidthLong</code></span></span><span id="variant.NativeVectorWidthFloat" class="variant small-section-header"><a href="#variant.NativeVectorWidthFloat" class="anchor field"></a><span id='NativeVectorWidthFloat.v' class='invisible'><code>NativeVectorWidthFloat</code></span></span><span id="variant.NativeVectorWidthDouble" class="variant small-section-header"><a href="#variant.NativeVectorWidthDouble" class="anchor field"></a><span id='NativeVectorWidthDouble.v' class='invisible'><code>NativeVectorWidthDouble</code></span></span><span id="variant.NativeVectorWidthHalf" class="variant small-section-header"><a href="#variant.NativeVectorWidthHalf" class="anchor field"></a><span id='NativeVectorWidthHalf.v' class='invisible'><code>NativeVectorWidthHalf</code></span></span><span id="variant.OpenclCVersion" class="variant small-section-header"><a href="#variant.OpenclCVersion" class="anchor field"></a><span id='OpenclCVersion.v' class='invisible'><code>OpenclCVersion</code></span></span><span id="variant.LinkerAvailable" class="variant small-section-header"><a href="#variant.LinkerAvailable" class="anchor field"></a><span id='LinkerAvailable.v' class='invisible'><code>LinkerAvailable</code></span></span><span id="variant.BuiltInKernels" class="variant small-section-header"><a href="#variant.BuiltInKernels" class="anchor field"></a><span id='BuiltInKernels.v' class='invisible'><code>BuiltInKernels</code></span></span><span id="variant.ImageMaxBufferSize" class="variant small-section-header"><a href="#variant.ImageMaxBufferSize" class="anchor field"></a><span id='ImageMaxBufferSize.v' class='invisible'><code>ImageMaxBufferSize</code></span></span><span id="variant.ImageMaxArraySize" class="variant small-section-header"><a href="#variant.ImageMaxArraySize" class="anchor field"></a><span id='ImageMaxArraySize.v' class='invisible'><code>ImageMaxArraySize</code></span></span><span id="variant.ParentDevice" class="variant small-section-header"><a href="#variant.ParentDevice" class="anchor field"></a><span id='ParentDevice.v' class='invisible'><code>ParentDevice</code></span></span><span id="variant.PartitionMaxSubDevices" class="variant small-section-header"><a href="#variant.PartitionMaxSubDevices" class="anchor field"></a><span id='PartitionMaxSubDevices.v' class='invisible'><code>PartitionMaxSubDevices</code></span></span><span id="variant.PartitionProperties" class="variant small-section-header"><a href="#variant.PartitionProperties" class="anchor field"></a><span id='PartitionProperties.v' class='invisible'><code>PartitionProperties</code></span></span><span id="variant.PartitionAffinityDomain" class="variant small-section-header"><a href="#variant.PartitionAffinityDomain" class="anchor field"></a><span id='PartitionAffinityDomain.v' class='invisible'><code>PartitionAffinityDomain</code></span></span><span id="variant.PartitionType" class="variant small-section-header"><a href="#variant.PartitionType" class="anchor field"></a><span id='PartitionType.v' class='invisible'><code>PartitionType</code></span></span><span id="variant.ReferenceCount" class="variant small-section-header"><a href="#variant.ReferenceCount" class="anchor field"></a><span id='ReferenceCount.v' class='invisible'><code>ReferenceCount</code></span></span><span id="variant.PreferredInteropUserSync" class="variant small-section-header"><a href="#variant.PreferredInteropUserSync" class="anchor field"></a><span id='PreferredInteropUserSync.v' class='invisible'><code>PreferredInteropUserSync</code></span></span><span id="variant.PrintfBufferSize" class="variant small-section-header"><a href="#variant.PrintfBufferSize" class="anchor field"></a><span id='PrintfBufferSize.v' class='invisible'><code>PrintfBufferSize</code></span></span><span id="variant.ImagePitchAlignment" class="variant small-section-header"><a href="#variant.ImagePitchAlignment" class="anchor field"></a><span id='ImagePitchAlignment.v' class='invisible'><code>ImagePitchAlignment</code></span></span><span id="variant.ImageBaseAddressAlignment" class="variant small-section-header"><a href="#variant.ImageBaseAddressAlignment" class="anchor field"></a><span id='ImageBaseAddressAlignment.v' class='invisible'><code>ImageBaseAddressAlignment</code></span></span>
  132. <h2 id='implementations' class='small-section-header'>
  133. Trait Implementations<a href='#implementations' class='anchor'></a>
  134. </h2>
  135. <h3 id='impl-Eq' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="../../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a></code><a href='#impl-Eq' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/lib.rs.html#815' title='goto source code'>[src]</a></span></h3>
  136. <div class='impl-items'></div><h3 id='impl-PartialEq%3CDeviceInfo%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="enum" href="../../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a>&gt; for <a class="enum" href="../../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a></code><a href='#impl-PartialEq%3CDeviceInfo%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/lib.rs.html#815' title='goto source code'>[src]</a></span></h3>
  137. <div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, __arg_0: &amp;<a class="enum" href="../../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/lib.rs.html#815' title='goto source code'>[src]</a></span></h4>
  138. <div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
  139. </div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#121' title='goto source code'>[src]</a></span></h4>
  140. <div class='docblock'><p>This method tests for <code>!=</code>.</p>
  141. </div></div><h3 id='impl-Hash' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="enum" href="../../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a></code><a href='#impl-Hash' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/lib.rs.html#815' title='goto source code'>[src]</a></span></h3>
  142. <div class='impl-items'><h4 id='method.hash' class="method"><span id='hash.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash' class='fnname'>hash</a>&lt;__H&gt;(&amp;self, __arg_0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>__H) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;__H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/lib.rs.html#815' title='goto source code'>[src]</a></span></h4>
  143. <div class='docblock'><p>Feeds this value into the given [<code>Hasher</code>]. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
  144. </div><h4 id='method.hash_slice' class="method"><span id='hash_slice.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice' class='fnname'>hash_slice</a>&lt;H&gt;(data: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>H) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.3.0'>1.3.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#202-208' title='goto source code'>[src]</a></span></h4>
  145. <div class='docblock'><p>Feeds a slice of this type into the given [<code>Hasher</code>]. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
  146. </div></div><h3 id='impl-Clone' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a></code><a href='#impl-Clone' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/lib.rs.html#815' title='goto source code'>[src]</a></span></h3>
  147. <div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="enum" href="../../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/lib.rs.html#815' title='goto source code'>[src]</a></span></h4>
  148. <div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
  149. </div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</code></span><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#112-114' title='goto source code'>[src]</a></span></h4>
  150. <div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
  151. </div></div><h3 id='impl-Copy' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a></code><a href='#impl-Copy' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/lib.rs.html#815' title='goto source code'>[src]</a></span></h3>
  152. <div class='impl-items'></div><h3 id='impl-FromPrimitive' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="enum" href="../../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a></code><a href='#impl-FromPrimitive' class='anchor'></a></span><span class='out-of-band'></span></h3>
  153. <div class='impl-items'><h4 id='method.from_i64' class="method"><span id='from_i64.v' class='invisible'><code>fn <a href='../../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64' class='fnname'>from_i64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a>&gt;</code></span></h4>
  154. <div class='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../../num_traits/cast/trait.FromPrimitive.html#tymethod.from_i64">Read more</a></p>
  155. </div><h4 id='method.from_u64' class="method"><span id='from_u64.v' class='invisible'><code>fn <a href='../../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64' class='fnname'>from_u64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a>&gt;</code></span></h4>
  156. <div class='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../../num_traits/cast/trait.FromPrimitive.html#tymethod.from_u64">Read more</a></p>
  157. </div><h4 id='method.from_isize' class="method"><span id='from_isize.v' class='invisible'><code>fn <a href='../../num_traits/cast/trait.FromPrimitive.html#method.from_isize' class='fnname'>from_isize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/num_traits/cast.rs.html#308-310' title='goto source code'>[src]</a></span></h4>
  158. <div class='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the value cannot be represented by this value, the <code>None</code> is returned. <a href="../../num_traits/cast/trait.FromPrimitive.html#method.from_isize">Read more</a></p>
  159. </div><h4 id='method.from_i8' class="method"><span id='from_i8.v' class='invisible'><code>fn <a href='../../num_traits/cast/trait.FromPrimitive.html#method.from_i8' class='fnname'>from_i8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/num_traits/cast.rs.html#315-317' title='goto source code'>[src]</a></span></h4>
  160. <div class='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../../num_traits/cast/trait.FromPrimitive.html#method.from_i8">Read more</a></p>
  161. </div><h4 id='method.from_i16' class="method"><span id='from_i16.v' class='invisible'><code>fn <a href='../../num_traits/cast/trait.FromPrimitive.html#method.from_i16' class='fnname'>from_i16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/num_traits/cast.rs.html#322-324' title='goto source code'>[src]</a></span></h4>
  162. <div class='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../../num_traits/cast/trait.FromPrimitive.html#method.from_i16">Read more</a></p>
  163. </div><h4 id='method.from_i32' class="method"><span id='from_i32.v' class='invisible'><code>fn <a href='../../num_traits/cast/trait.FromPrimitive.html#method.from_i32' class='fnname'>from_i32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/num_traits/cast.rs.html#329-331' title='goto source code'>[src]</a></span></h4>
  164. <div class='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../../num_traits/cast/trait.FromPrimitive.html#method.from_i32">Read more</a></p>
  165. </div><h4 id='method.from_usize' class="method"><span id='from_usize.v' class='invisible'><code>fn <a href='../../num_traits/cast/trait.FromPrimitive.html#method.from_usize' class='fnname'>from_usize</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/num_traits/cast.rs.html#340-342' title='goto source code'>[src]</a></span></h4>
  166. <div class='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../../num_traits/cast/trait.FromPrimitive.html#method.from_usize">Read more</a></p>
  167. </div><h4 id='method.from_u8' class="method"><span id='from_u8.v' class='invisible'><code>fn <a href='../../num_traits/cast/trait.FromPrimitive.html#method.from_u8' class='fnname'>from_u8</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/num_traits/cast.rs.html#347-349' title='goto source code'>[src]</a></span></h4>
  168. <div class='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../../num_traits/cast/trait.FromPrimitive.html#method.from_u8">Read more</a></p>
  169. </div><h4 id='method.from_u16' class="method"><span id='from_u16.v' class='invisible'><code>fn <a href='../../num_traits/cast/trait.FromPrimitive.html#method.from_u16' class='fnname'>from_u16</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/num_traits/cast.rs.html#354-356' title='goto source code'>[src]</a></span></h4>
  170. <div class='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../../num_traits/cast/trait.FromPrimitive.html#method.from_u16">Read more</a></p>
  171. </div><h4 id='method.from_u32' class="method"><span id='from_u32.v' class='invisible'><code>fn <a href='../../num_traits/cast/trait.FromPrimitive.html#method.from_u32' class='fnname'>from_u32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/num_traits/cast.rs.html#361-363' title='goto source code'>[src]</a></span></h4>
  172. <div class='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../../num_traits/cast/trait.FromPrimitive.html#method.from_u32">Read more</a></p>
  173. </div><h4 id='method.from_f32' class="method"><span id='from_f32.v' class='invisible'><code>fn <a href='../../num_traits/cast/trait.FromPrimitive.html#method.from_f32' class='fnname'>from_f32</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/num_traits/cast.rs.html#372-374' title='goto source code'>[src]</a></span></h4>
  174. <div class='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../../num_traits/cast/trait.FromPrimitive.html#method.from_f32">Read more</a></p>
  175. </div><h4 id='method.from_f64' class="method"><span id='from_f64.v' class='invisible'><code>fn <a href='../../num_traits/cast/trait.FromPrimitive.html#method.from_f64' class='fnname'>from_f64</a>(n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/num_traits/cast.rs.html#379-381' title='goto source code'>[src]</a></span></h4>
  176. <div class='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the type cannot be represented by this value, the <code>None</code> is returned. <a href="../../num_traits/cast/trait.FromPrimitive.html#method.from_f64">Read more</a></p>
  177. </div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a></code><a href='#impl-Debug' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/lib.rs.html#815' title='goto source code'>[src]</a></span></h3>
  178. <div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, __arg_0: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/lib.rs.html#815' title='goto source code'>[src]</a></span></h4>
  179. <div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
  180. </div></div></section>
  181. <section id='search' class="content hidden"></section>
  182. <section class="footer"></section>
  183. <aside id="help" class="hidden">
  184. <div>
  185. <h1 class="hidden">Help</h1>
  186. <div class="shortcuts">
  187. <h2>Keyboard Shortcuts</h2>
  188. <dl>
  189. <dt><kbd>?</kbd></dt>
  190. <dd>Show this help dialog</dd>
  191. <dt><kbd>S</kbd></dt>
  192. <dd>Focus the search field</dd>
  193. <dt><kbd>↑</kbd></dt>
  194. <dd>Move up in search results</dd>
  195. <dt><kbd>↓</kbd></dt>
  196. <dd>Move down in search results</dd>
  197. <dt><kbd>↹</kbd></dt>
  198. <dd>Switch tab</dd>
  199. <dt><kbd>&#9166;</kbd></dt>
  200. <dd>Go to active search result</dd>
  201. <dt><kbd>+</kbd></dt>
  202. <dd>Expand all sections</dd>
  203. <dt><kbd>-</kbd></dt>
  204. <dd>Collapse all sections</dd>
  205. </dl>
  206. </div>
  207. <div class="infos">
  208. <h2>Search Tricks</h2>
  209. <p>
  210. Prefix searches with a type followed by a colon (e.g.
  211. <code>fn:</code>) to restrict the search to a given type.
  212. </p>
  213. <p>
  214. Accepted types are: <code>fn</code>, <code>mod</code>,
  215. <code>struct</code>, <code>enum</code>,
  216. <code>trait</code>, <code>type</code>, <code>macro</code>,
  217. and <code>const</code>.
  218. </p>
  219. <p>
  220. Search functions by type signature (e.g.
  221. <code>vec -> usize</code> or <code>* -> vec</code>)
  222. </p>
  223. </div>
  224. </div>
  225. </aside>
  226. <script>
  227. window.rootPath = "../../";
  228. window.currentCrate = "ocl";
  229. </script>
  230. <script src="../../main.js"></script>
  231. <script defer src="../../search-index.js"></script>
  232. </body>
  233. </html>