clfft 0.3.2

Bindings for clFFT, a FFT library for OpenCL.
Documentation
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="generator" content="rustdoc">
    <meta name="description" content="API documentation for the Rust `Device` struct in crate `ocl`.">
    <meta name="keywords" content="rust, rustlang, rust-lang, Device">

    <title>ocl::Device - Rust</title>

    <link rel="stylesheet" type="text/css" href="../normalize.css">
    <link rel="stylesheet" type="text/css" href="../rustdoc.css">
    <link rel="stylesheet" type="text/css" href="../main.css">
    

    
    
</head>
<body class="rustdoc struct">
    <!--[if lte IE 8]>
    <div class="warning">
        This old browser is unsupported and will most likely display funky
        things.
    </div>
    <![endif]-->

    

    <nav class="sidebar">
        
        <p class='location'><a href='index.html'>ocl</a></p><script>window.sidebarCurrent = {name: 'Device', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script>
    </nav>

    <nav class="sub">
        <form class="search-form js-only">
            <div class="search-container">
                <input class="search-input" name="search"
                       autocomplete="off"
                       placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
                       type="search">
            </div>
        </form>
    </nav>

    <section id='main' class="content">
<h1 class='fqn'><span class='in-band'>Struct <a href='index.html'>ocl</a>::<wbr><a class="struct" href=''>Device</a></span><span class='out-of-band'><span id='render-detail'>
                   <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
                       [<span class='inner'>&#x2212;</span>]
                   </a>
               </span><a class='srclink' href='../src/ocl/standard/device.rs.html#234' title='goto source code'>[src]</a></span></h1>
<pre class='rust struct'><div class="docblock attributes">#[repr(C)]
</div>pub struct Device(_);</pre><div class='docblock'><p>An individual device identifier (an OpenCL device_id).</p>
</div><h2 id='methods'>Methods</h2><h3 class='impl'><span class='in-band'><code>impl <a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#236-505' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.first' class="method"><span id='first.v' class='invisible'><code>fn <a href='#method.first' class='fnname'>first</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;<a class="struct" href="../ocl/struct.Platform.html" title="struct ocl::Platform">Platform</a>&gt;&gt;(platform: P) -&gt; <a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span></h4>
<div class='docblock'><p>Returns the first available device on a platform.</p>
<p>Panics upon OpenCL error.</p>
</div><h4 id='method.by_idx_wrap' class="method"><span id='by_idx_wrap.v' class='invisible'><code>fn <a href='#method.by_idx_wrap' class='fnname'>by_idx_wrap</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;<a class="struct" href="../ocl/struct.Platform.html" title="struct ocl::Platform">Platform</a>&gt;&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;platform: P, <br>&nbsp;&nbsp;&nbsp;&nbsp;device_idx_wrap: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -&gt; <a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span></h4>
<div class='docblock'><p>Returns a single device specified by a wrapped index.</p>
<p>Panics upon OpenCL error.</p>
</div><h4 id='method.specifier' class="method"><span id='specifier.v' class='invisible'><code>fn <a href='#method.specifier' class='fnname'>specifier</a>() -&gt; <a class="enum" href="../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span></h4>
<div class='docblock'><p>Returns a <code>DeviceSpecifier</code> useful for precisely specifying a set
of devices.</p>
</div><h4 id='method.resolve_idxs' class="method"><span id='resolve_idxs.v' class='invisible'><code>fn <a href='#method.resolve_idxs' class='fnname'>resolve_idxs</a>(idxs: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, devices: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="type" href="../ocl/type.Result.html" title="type ocl::Result">OclResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html" title="struct collections::vec::Vec">Vec</a>&lt;<a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a>&gt;&gt;</code></span></h4>
<div class='docblock'><p>Resolves a list of indices into a list of valid devices.</p>
<p><code>devices</code> is the set of all indexable devices.</p>
<h3 id="errors" class="section-header"><a href="#errors">Errors</a></h3>
<p>All indices in <code>idxs</code> must be valid. Use <code>resolve_idxs_wrap</code> for index
lists which may contain out of bounds indices.</p>
</div><h4 id='method.resolve_idxs_wrap' class="method"><span id='resolve_idxs_wrap.v' class='invisible'><code>fn <a href='#method.resolve_idxs_wrap' class='fnname'>resolve_idxs_wrap</a>(idxs: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, devices: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html" title="struct collections::vec::Vec">Vec</a>&lt;<a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a>&gt;</code></span></h4>
<div class='docblock'><p>Resolves a list of indices into a list of valid devices.</p>
<p><code>devices</code> is the set of all indexable devices.</p>
<p>Wraps indices around using modulo (<code>%</code>) so that every index is valid.</p>
</div><h4 id='method.list' class="method"><span id='list.v' class='invisible'><code>fn <a href='#method.list' class='fnname'>list</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;<a class="struct" href="../ocl/struct.Platform.html" title="struct ocl::Platform">Platform</a>&gt;&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;platform: P, <br>&nbsp;&nbsp;&nbsp;&nbsp;device_types: <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="struct" href="../ocl/flags/struct.DeviceType.html" title="struct ocl::flags::DeviceType">DeviceType</a>&gt;<br>) -&gt; <a class="type" href="../ocl/type.Result.html" title="type ocl::Result">OclResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html" title="struct collections::vec::Vec">Vec</a>&lt;<a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a>&gt;&gt;</code></span></h4>
<div class='docblock'><p>Returns a list of all devices avaliable for a given platform which
optionally match the flags set in the bitfield, <code>device_types</code>.</p>
<p>Setting <code>device_types</code> to <code>None</code> will return a list of all avaliable
devices for <code>platform</code> regardless of type.</p>
<h3 id="errors-1" class="section-header"><a href="#errors-1">Errors</a></h3>
<p>Returns an <code>Err(ocl::core::Error::Status {...})</code> enum variant upon any
OpenCL error. Calling <a href="enum.Error.html#method.status"><code>.status()</code></a> on the returned error will return
an <code>Option(``[ocl::core::Status]``)</code> which can be unwrapped then
matched to determine the precise reason for failure.</p>
</div><h4 id='method.list_all' class="method"><span id='list_all.v' class='invisible'><code>fn <a href='#method.list_all' class='fnname'>list_all</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;<a class="struct" href="../ocl/struct.Platform.html" title="struct ocl::Platform">Platform</a>&gt;&gt;(platform: P) -&gt; <a class="type" href="../ocl/type.Result.html" title="type ocl::Result">OclResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html" title="struct collections::vec::Vec">Vec</a>&lt;<a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a>&gt;&gt;</code></span></h4>
<div class='docblock'><p>Returns a list of all devices avaliable for a given <code>platform</code>.</p>
<p>Equivalent to <code>::list(platform, None)</code>.</p>
<p>See <a href="struct.Device.html#method.list"><code>::list</code></a> for other
error information.</p>
</div><h4 id='method.list_select' class="method"><span id='list_select.v' class='invisible'><code>fn <a href='#method.list_select' class='fnname'>list_select</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;<a class="struct" href="../ocl/struct.Platform.html" title="struct ocl::Platform">Platform</a>&gt;&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;platform: P, <br>&nbsp;&nbsp;&nbsp;&nbsp;device_types: <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="struct" href="../ocl/flags/struct.DeviceType.html" title="struct ocl::flags::DeviceType">DeviceType</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;idxs: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="type" href="../ocl/type.Result.html" title="type ocl::Result">OclResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html" title="struct collections::vec::Vec">Vec</a>&lt;<a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a>&gt;&gt;</code></span></h4>
<div class='docblock'><p>Returns a list of devices filtered by type then selected using a
list of indices.</p>
<h3 id="errors-2" class="section-header"><a href="#errors-2">Errors</a></h3>
<p>All indices in <code>idxs</code> must be valid.</p>
<p>See <a href="struct.Device.html#method.list"><code>::list</code></a> for other
error information.</p>
</div><h4 id='method.list_select_wrap' class="method"><span id='list_select_wrap.v' class='invisible'><code>fn <a href='#method.list_select_wrap' class='fnname'>list_select_wrap</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;<a class="struct" href="../ocl/struct.Platform.html" title="struct ocl::Platform">Platform</a>&gt;&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;platform: P, <br>&nbsp;&nbsp;&nbsp;&nbsp;device_types: <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="struct" href="../ocl/flags/struct.DeviceType.html" title="struct ocl::flags::DeviceType">DeviceType</a>&gt;, <br>&nbsp;&nbsp;&nbsp;&nbsp;idxs: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -&gt; <a class="type" href="../ocl/type.Result.html" title="type ocl::Result">OclResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html" title="struct collections::vec::Vec">Vec</a>&lt;<a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a>&gt;&gt;</code></span></h4>
<div class='docblock'><p>Returns a list of devices filtered by type then selected using a
wrapping list of indices.</p>
<p>Wraps indices around (<code>%</code>) so that every index is valid.</p>
<h3 id="errors-3" class="section-header"><a href="#errors-3">Errors</a></h3>
<p>See <a href="struct.Device.html#method.list"><code>::list</code></a></p>
</div><h4 id='method.list_from_core' class="method"><span id='list_from_core.v' class='invisible'><code>fn <a href='#method.list_from_core' class='fnname'>list_from_core</a>(devices: <a class="struct" href="https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html" title="struct collections::vec::Vec">Vec</a>&lt;<a class="struct" href="../ocl_core/types/abs/struct.DeviceId.html" title="struct ocl_core::types::abs::DeviceId">DeviceIdCore</a>&gt;) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html" title="struct collections::vec::Vec">Vec</a>&lt;<a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a>&gt;</code></span></h4>
<div class='docblock'><p>Returns a list of <code>Device</code>s from a list of <code>DeviceIdCore</code>s</p>
</div><h4 id='method.name' class="method"><span id='name.v' class='invisible'><code>fn <a href='#method.name' class='fnname'>name</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/collections/string/struct.String.html" title="struct collections::string::String">String</a></code></span></h4>
<div class='docblock'><p>Returns the device name.</p>
</div><h4 id='method.vendor' class="method"><span id='vendor.v' class='invisible'><code>fn <a href='#method.vendor' class='fnname'>vendor</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/collections/string/struct.String.html" title="struct collections::string::String">String</a></code></span></h4>
<div class='docblock'><p>Returns the device vendor as a string.</p>
</div><h4 id='method.max_wg_size' class="method"><span id='max_wg_size.v' class='invisible'><code>fn <a href='#method.max_wg_size' class='fnname'>max_wg_size</a>(&amp;self) -&gt; <a class="type" href="../ocl/type.Result.html" title="type ocl::Result">OclResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>&gt;</code></span></h4>
<div class='docblock'><p>Returns the maximum workgroup size or an error.</p>
</div><h4 id='method.mem_base_addr_align' class="method"><span id='mem_base_addr_align.v' class='invisible'><code>fn <a href='#method.mem_base_addr_align' class='fnname'>mem_base_addr_align</a>(&amp;self) -&gt; <a class="type" href="../ocl/type.Result.html" title="type ocl::Result">OclResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>&gt;</code></span></h4>
<div class='docblock'><p>Returns the memory base address alignment offset or an error.</p>
</div><h4 id='method.is_available' class="method"><span id='is_available.v' class='invisible'><code>fn <a href='#method.is_available' class='fnname'>is_available</a>(&amp;self) -&gt; <a class="type" href="../ocl/type.Result.html" title="type ocl::Result">OclResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt;</code></span></h4>
<div class='docblock'><p>Returns whether or not the device is available for use.</p>
</div><h4 id='method.info' class="method"><span id='info.v' class='invisible'><code>fn <a href='#method.info' class='fnname'>info</a>(&amp;self, info_kind: <a class="enum" href="../ocl/enums/enum.DeviceInfo.html" title="enum ocl::enums::DeviceInfo">DeviceInfo</a>) -&gt; <a class="enum" href="../ocl/enums/enum.DeviceInfoResult.html" title="enum ocl::enums::DeviceInfoResult">DeviceInfoResult</a></code></span></h4>
<div class='docblock'><p>Returns info about the device.</p>
</div><h4 id='method.to_string' class="method"><span id='to_string.v' class='invisible'><code>fn <a href='#method.to_string' class='fnname'>to_string</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/collections/string/struct.String.html" title="struct collections::string::String">String</a></code></span></h4>
<div class='docblock'><p>Returns a string containing a formatted list of device properties.</p>
</div><h4 id='method.as_core' class="method"><span id='as_core.v' class='invisible'><code>fn <a href='#method.as_core' class='fnname'>as_core</a>(&amp;self) -&gt; &amp;<a class="struct" href="../ocl_core/types/abs/struct.DeviceId.html" title="struct ocl_core::types::abs::DeviceId">DeviceIdCore</a></code></span></h4>
<div class='docblock'><p>Returns the underlying <code>DeviceIdCore</code>.</p>
</div></div><h2 id='deref-methods'>Methods from <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Deref.html" title="trait core::ops::Deref">Deref</a>&lt;Target = <a class="struct" href="../ocl_core/types/abs/struct.DeviceId.html" title="struct ocl_core::types::abs::DeviceId">DeviceIdCore</a>&gt;</h2><div class='impl-items'><h4 id='method.as_raw' class="method"><span id='as_raw.v' class='invisible'><code>fn <a href='#method.as_raw' class='fnname'>as_raw</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="../libc/enum.c_void.html" title="enum libc::c_void">c_void</a></code></span></h4>
<div class='docblock'><p>Returns a pointer.</p>
</div><h4 id='method.version' class="method"><span id='version.v' class='invisible'><code>fn <a href='#method.version' class='fnname'>version</a>(&amp;self) -&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="struct" href="../ocl_core/types/structs/struct.OpenclVersion.html" title="struct ocl_core::types::structs::OpenclVersion">OpenclVersion</a>, <a class="enum" href="../ocl/enum.Error.html" title="enum ocl::Error">Error</a>&gt;</code></span></h4>
<div class='docblock'><p>Returns the queried and parsed OpenCL version for this device.</p>
</div></div><h2 id='implementations'>Trait Implementations</h2><h3 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="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#232' title='goto source code'>[src]</a></span></h3>
<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="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span></h4>
<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>
</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: &amp;Self)</code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div></span></h4>
<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>
</div></div><h3 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="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#232' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'></div><h3 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="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#232' title='goto source code'>[src]</a></span></h3>
<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="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span></h4>
<div class='docblock'><p>Formats the value using the given formatter.</p>
</div></div><h3 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> for <a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#232' title='goto source code'>[src]</a></span></h3>
<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="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<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>
</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, __arg_0: &amp;<a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 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="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#232' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="../ocl_core/types/abs/trait.ClDeviceIdPtr.html" title="trait ocl_core::types::abs::ClDeviceIdPtr">ClDeviceIdPtr</a> for <a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#507-511' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.as_ptr' class="method"><span id='as_ptr.v' class='invisible'><code>fn <a href='../ocl_core/types/abs/trait.ClDeviceIdPtr.html#tymethod.as_ptr' class='fnname'>as_ptr</a>(&amp;self) -&gt; <a class="type" href="../cl_sys/cl_h/type.cl_device_id.html" title="type cl_sys::cl_h::cl_device_id">cl_device_id</a></code></span></h4>
</div><h3 class='impl'><span class='in-band'><code>impl&lt;'a&gt; <a class="trait" href="../ocl_core/types/abs/trait.ClDeviceIdPtr.html" title="trait ocl_core::types::abs::ClDeviceIdPtr">ClDeviceIdPtr</a> for &amp;'a <a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#513-517' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.as_ptr-1' class="method"><span id='as_ptr.v-1' class='invisible'><code>fn <a href='../ocl_core/types/abs/trait.ClDeviceIdPtr.html#tymethod.as_ptr' class='fnname'>as_ptr</a>(&amp;self) -&gt; <a class="type" href="../cl_sys/cl_h/type.cl_device_id.html" title="type cl_sys::cl_h::cl_device_id">cl_device_id</a></code></span></h4>
</div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../ocl_core/types/abs/struct.DeviceId.html" title="struct ocl_core::types::abs::DeviceId">DeviceIdCore</a>&gt; for <a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#519-523' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.from' class="method"><span id='from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(core: <a class="struct" href="../ocl_core/types/abs/struct.DeviceId.html" title="struct ocl_core::types::abs::DeviceId">DeviceIdCore</a>) -&gt; <a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span></h4>
<div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#549-553' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &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="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span></h4>
<div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a>&gt; for <a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#555-559' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.as_ref' class="method"><span id='as_ref.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref' class='fnname'>as_ref</a>(&amp;self) -&gt; &amp;<a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span></h4>
<div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.Deref.html" title="trait core::ops::Deref">Deref</a> for <a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#561-567' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='associatedtype.Target' class="type"><span id='Target.t' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Deref.html#associatedtype.Target' class="type">Target</a> = <a class="struct" href="../ocl_core/types/abs/struct.DeviceId.html" title="struct ocl_core::types::abs::DeviceId">DeviceIdCore</a></code></span></h4>
<div class='docblock'><p>The resulting type after dereferencing</p>
</div><h4 id='method.deref' class="method"><span id='deref.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.Deref.html#tymethod.deref' class='fnname'>deref</a>(&amp;self) -&gt; &amp;<a class="struct" href="../ocl_core/types/abs/struct.DeviceId.html" title="struct ocl_core::types::abs::DeviceId">DeviceIdCore</a></code></span></h4>
<div class='docblock'><p>The method called to dereference a value</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/trait.DerefMut.html" title="trait core::ops::DerefMut">DerefMut</a> for <a class="struct" href="../ocl/struct.Device.html" title="struct ocl::Device">Device</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl/standard/device.rs.html#569-573' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.deref_mut' class="method"><span id='deref_mut.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/trait.DerefMut.html#tymethod.deref_mut' class='fnname'>deref_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="../ocl_core/types/abs/struct.DeviceId.html" title="struct ocl_core::types::abs::DeviceId">DeviceIdCore</a></code></span></h4>
<div class='docblock'><p>The method called to mutably dereference a value</p>
</div></div></section>
    <section id='search' class="content hidden"></section>

    <section class="footer"></section>

    <aside id="help" class="hidden">
        <div>
            <h1 class="hidden">Help</h1>

            <div class="shortcuts">
                <h2>Keyboard Shortcuts</h2>

                <dl>
                    <dt>?</dt>
                    <dd>Show this help dialog</dd>
                    <dt>S</dt>
                    <dd>Focus the search field</dd>
                    <dt>&larrb;</dt>
                    <dd>Move up in search results</dd>
                    <dt>&rarrb;</dt>
                    <dd>Move down in search results</dd>
                    <dt>&#9166;</dt>
                    <dd>Go to active search result</dd>
                    <dt>+</dt>
                    <dd>Collapse/expand all sections</dd>
                </dl>
            </div>

            <div class="infos">
                <h2>Search Tricks</h2>

                <p>
                    Prefix searches with a type followed by a colon (e.g.
                    <code>fn:</code>) to restrict the search to a given type.
                </p>

                <p>
                    Accepted types are: <code>fn</code>, <code>mod</code>,
                    <code>struct</code>, <code>enum</code>,
                    <code>trait</code>, <code>type</code>, <code>macro</code>,
                    and <code>const</code>.
                </p>

                <p>
                    Search functions by type signature (e.g.
                    <code>vec -> usize</code> or <code>* -> vec</code>)
                </p>
            </div>
        </div>
    </aside>

    

    <script>
        window.rootPath = "../";
        window.currentCrate = "ocl";
    </script>
    <script src="../jquery.js"></script>
    <script src="../main.js"></script>
    <script defer src="../search-index.js"></script>
</body>
</html>