123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- <!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 `DeviceSpecifier` enum in crate `ocl`.">
- <meta name="keywords" content="rust, rustlang, rust-lang, DeviceSpecifier">
- <title>ocl::enums::DeviceSpecifier - Rust</title>
- <link rel="stylesheet" type="text/css" href="../../normalize.css">
- <link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle">
-
- <link rel="stylesheet" type="text/css" href="../../dark.css">
- <link rel="stylesheet" type="text/css" href="../../main.css" id="themeStyle">
- <script src="../../storage.js"></script>
-
-
-
- </head>
- <body class="rustdoc enum">
- <!--[if lte IE 8]>
- <div class="warning">
- This old browser is unsupported and will most likely display funky
- things.
- </div>
- <![endif]-->
-
- <nav class="sidebar">
- <div class="sidebar-menu">☰</div>
-
- <p class='location'>Enum DeviceSpecifier</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.All">All</a><a href="#variant.First">First</a><a href="#variant.Single">Single</a><a href="#variant.List">List</a><a href="#variant.Indices">Indices</a><a href="#variant.WrappingIndices">WrappingIndices</a><a href="#variant.TypeFlags">TypeFlags</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.all">all</a><a href="#method.first">first</a><a href="#method.single">single</a><a href="#method.list">list</a><a href="#method.indices">indices</a><a href="#method.wrapping_indices">wrapping_indices</a><a href="#method.type_flags">type_flags</a><a href="#method.to_device_list">to_device_list</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Clone">Clone</a><a href="#impl-Default">Default</a><a href="#impl-From%3Cusize%3E">From<usize></a><a href="#impl-From%3C%26%27a%20%5Busize%5D%3E">From<&'a [usize]></a><a href="#impl-From%3C%26%27a%20Vec%3Cusize%3E%3E">From<&'a Vec<usize>></a><a href="#impl-From%3C%26%27a%20%5BDevice%5D%3E">From<&'a [Device]></a><a href="#impl-From%3C%26%27a%20Vec%3CDevice%3E%3E">From<&'a Vec<Device>></a><a href="#impl-From%3CDevice%3E">From<Device></a><a href="#impl-From%3C%26%27a%20Device%3E">From<&'a Device></a><a href="#impl-From%3CDeviceIdCore%3E">From<DeviceIdCore></a><a href="#impl-From%3C%26%27a%20DeviceIdCore%3E">From<&'a DeviceIdCore></a><a href="#impl-From%3CDeviceType%3E">From<DeviceType></a></div></div><p class='location'><a href='../index.html'>ocl</a>::<wbr><a href='index.html'>enums</a></p><script>window.sidebarCurrent = {name: 'DeviceSpecifier', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
- </nav>
- <div class="theme-picker">
- <button id="theme-picker" aria-label="Pick another theme!">
- <img src="../../brush.svg" width="18" alt="Pick another theme!">
- </button>
- <div id="theme-choices"></div>
- </div>
- <script src="../../theme.js"></script>
- <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'>Enum <a href='../index.html'>ocl</a>::<wbr><a href='index.html'>enums</a>::<wbr><a class="enum" href=''>DeviceSpecifier</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'>−</span>]
- </a>
- </span><a class='srclink' href='../../src/ocl/standard/device.rs.html#67-75' title='goto source code'>[src]</a></span></h1>
- <pre class='rust enum'>pub enum DeviceSpecifier {
- All,
- First,
- Single(<a class="struct" href="../../ocl/struct.Device.html" title="struct ocl::Device">Device</a>),
- List(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../ocl/struct.Device.html" title="struct ocl::Device">Device</a>>),
- Indices(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>),
- WrappingIndices(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>),
- TypeFlags(<a class="struct" href="../../ocl/flags/struct.DeviceType.html" title="struct ocl::flags::DeviceType">DeviceType</a>),
- }</pre><div class='docblock'><p>Specifies [what boils down to] a list of devices.</p>
- <p>The <code>Indices</code> variant is context-specific, not robust, and may lead to a
- panic if the context changes. It is useful for convenience only and not
- recommended for general use. The <code>WrappingIndices</code> variant is somewhat
- less dangerous but can still be somewhat machine-specific.</p>
- <p>The <code>TypeFlags</code> variant is used for specifying a list of devices using a
- bitfield (<code>DeviceType</code>) and is the most robust / portable.</p>
- <p>[FIXME: Add some links to the SDK]</p>
- </div><h2 id='variants' class='variants small-section-header'>
- Variants<a href='#variants' class='anchor'></a></h2>
- <span id="variant.All" class="variant small-section-header"><a href="#variant.All" class="anchor field"></a><span id='All.v' class='invisible'><code>All</code></span></span><span id="variant.First" class="variant small-section-header"><a href="#variant.First" class="anchor field"></a><span id='First.v' class='invisible'><code>First</code></span></span><span id="variant.Single" class="variant small-section-header"><a href="#variant.Single" class="anchor field"></a><span id='Single.v' class='invisible'><code>Single(<a class="struct" href="../../ocl/struct.Device.html" title="struct ocl::Device">Device</a>)</code></span></span><span id="variant.List" class="variant small-section-header"><a href="#variant.List" class="anchor field"></a><span id='List.v' class='invisible'><code>List(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../ocl/struct.Device.html" title="struct ocl::Device">Device</a>>)</code></span></span><span id="variant.Indices" class="variant small-section-header"><a href="#variant.Indices" class="anchor field"></a><span id='Indices.v' class='invisible'><code>Indices(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>)</code></span></span><span id="variant.WrappingIndices" class="variant small-section-header"><a href="#variant.WrappingIndices" class="anchor field"></a><span id='WrappingIndices.v' class='invisible'><code>WrappingIndices(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>)</code></span></span><span id="variant.TypeFlags" class="variant small-section-header"><a href="#variant.TypeFlags" class="anchor field"></a><span id='TypeFlags.v' class='invisible'><code>TypeFlags(<a class="struct" href="../../ocl/flags/struct.DeviceType.html" title="struct ocl::flags::DeviceType">DeviceType</a>)</code></span></span>
- <h2 id='methods' class='small-section-header'>
- Methods<a href='#methods' class='anchor'></a>
- </h2>
- <h3 id='impl' class='impl'><span class='in-band'><code>impl <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code><a href='#impl' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#77-180' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.all' class="method"><span id='all.v' class='invisible'><code>pub fn <a href='#method.all' class='fnname'>all</a>(self) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#81-83' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns a <code>DeviceSpecifier::All</code> variant which specifies all
- devices on a platform.</p>
- </div><h4 id='method.first' class="method"><span id='first.v' class='invisible'><code>pub fn <a href='#method.first' class='fnname'>first</a>(self) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#88-90' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns a <code>DeviceSpecifier::First</code> variant which specifies only
- the first device on a platform.</p>
- </div><h4 id='method.single' class="method"><span id='single.v' class='invisible'><code>pub fn <a href='#method.single' class='fnname'>single</a>(self, device: <a class="struct" href="../../ocl/struct.Device.html" title="struct ocl::Device">Device</a>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#95-97' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns a <code>DeviceSpecifier::Single</code> variant which specifies a single
- device.</p>
- </div><h4 id='method.list' class="method"><span id='list.v' class='invisible'><code>pub fn <a href='#method.list' class='fnname'>list</a>(self, list: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../ocl/struct.Device.html" title="struct ocl::Device">Device</a>>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#102-104' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns a <code>DeviceSpecifier::List</code> variant which specifies a list of
- devices.</p>
- </div><h4 id='method.indices' class="method"><span id='indices.v' class='invisible'><code>pub unsafe fn <a href='#method.indices' class='fnname'>indices</a>(self, indices: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#124-126' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns a <code>DeviceSpecifier::Indices</code> variant which specifies a list of
- devices by index.</p>
- <h3 id="safety" class="section-header"><a href="#safety">Safety</a></h3>
- <p>This variant is context-specific, not robust, and may lead to a panic
- if the context changes. It is useful for convenience only and not
- recommended for general use.</p>
- <p>Though using the <code>Indices</code> variant is not strictly unsafe in the usual
- way (will not lead to memory bugs, etc.), it is marked unsafe as a
- warning. Recommendations for a more idiomatic way to express this
- potential footgun are welcome.</p>
- <p>Using <code>::wrapping_indices</code> is a more robust (but still potentially
- non-portable) solution.</p>
- </div><h4 id='method.wrapping_indices' class="method"><span id='wrapping_indices.v' class='invisible'><code>pub fn <a href='#method.wrapping_indices' class='fnname'>wrapping_indices</a>(self, windices: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#132-134' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns a <code>DeviceSpecifier::WrappingIndices</code> variant, specifying a
- list of devices by indices which are wrapped around (simply using the
- modulo operator) so that every index is always valid.</p>
- </div><h4 id='method.type_flags' class="method"><span id='type_flags.v' class='invisible'><code>pub fn <a href='#method.type_flags' class='fnname'>type_flags</a>(self, flags: <a class="struct" href="../../ocl/flags/struct.DeviceType.html" title="struct ocl::flags::DeviceType">DeviceType</a>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#139-141' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns a <code>DeviceSpecifier::TypeFlags</code> variant which specifies a list
- of devices using a conventional bitfield.</p>
- </div><h4 id='method.to_device_list' class="method"><span id='to_device_list.v' class='invisible'><code>pub fn <a href='#method.to_device_list' class='fnname'>to_device_list</a><P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><<a class="struct" href="../../ocl/struct.Platform.html" title="struct ocl::Platform">Platform</a>>>(<br> &self, <br> platform: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><P><br>) -> <a class="type" href="../../ocl/error/type.Result.html" title="type ocl::error::Result">OclResult</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</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#153-179' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns the list of devices matching the parameters specified by this
- <code>DeviceSpecifier</code></p>
- <h3 id="panics" class="section-header"><a href="#panics">Panics</a></h3>
- <p>Any device indices listed within the <code>Indices</code> variant must be within
- the range of the number of devices for the platform specified by
- <code>Platform</code>. If no <code>platform</code> has been specified, this behaviour is
- undefined and could end up using any platform at all.</p>
- </div></div>
- <h2 id='implementations' class='small-section-header'>
- Trait Implementations<a href='#implementations' class='anchor'></a>
- </h2>
- <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/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</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/standard/device.rs.html#66' 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>(&self, __arg_0: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#66' title='goto source code'>[src]</a></span></h4>
- <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>
- </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/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</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/standard/device.rs.html#66' 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>(&self) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#66' title='goto source code'>[src]</a></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>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</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>
- <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 id='impl-Default' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code><a href='#impl-Default' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#182-186' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#183-185' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
- </div></div><h3 id='impl-From%3Cusize%3E' 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><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> for <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code><a href='#impl-From%3Cusize%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#188-192' 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>(index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#189-191' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</p>
- </div></div><h3 id='impl-From%3C%26%27a%20%5Busize%5D%3E' class='impl'><span class='in-band'><code>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [</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>> for <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code><a href='#impl-From%3C%26%27a%20%5Busize%5D%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#194-198' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.from-1' class="method"><span id='from.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(indices: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [</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>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#195-197' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</p>
- </div></div><h3 id='impl-From%3C%26%27a%20Vec%3Cusize%3E%3E' class='impl'><span class='in-band'><code>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>> for <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code><a href='#impl-From%3C%26%27a%20Vec%3Cusize%3E%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#200-204' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.from-2' class="method"><span id='from.v-2' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(indices: &'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#201-203' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</p>
- </div></div><h3 id='impl-From%3C%26%27a%20%5BDevice%5D%3E' class='impl'><span class='in-band'><code>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [</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>> for <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code><a href='#impl-From%3C%26%27a%20%5BDevice%5D%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#206-210' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.from-3' class="method"><span id='from.v-3' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(devices: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&'a [</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>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#207-209' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</p>
- </div></div><h3 id='impl-From%3C%26%27a%20Vec%3CDevice%3E%3E' class='impl'><span class='in-band'><code>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../ocl/struct.Device.html" title="struct ocl::Device">Device</a>>> for <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code><a href='#impl-From%3C%26%27a%20Vec%3CDevice%3E%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#212-216' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.from-4' class="method"><span id='from.v-4' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(devices: &'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../ocl/struct.Device.html" title="struct ocl::Device">Device</a>>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#213-215' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</p>
- </div></div><h3 id='impl-From%3CDevice%3E' 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><<a class="struct" href="../../ocl/struct.Device.html" title="struct ocl::Device">Device</a>> for <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code><a href='#impl-From%3CDevice%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#218-222' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.from-5' class="method"><span id='from.v-5' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(device: <a class="struct" href="../../ocl/struct.Device.html" title="struct ocl::Device">Device</a>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#219-221' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</p>
- </div></div><h3 id='impl-From%3C%26%27a%20Device%3E' class='impl'><span class='in-band'><code>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../../ocl/struct.Device.html" title="struct ocl::Device">Device</a>> for <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code><a href='#impl-From%3C%26%27a%20Device%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#224-228' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.from-6' class="method"><span id='from.v-6' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(device: &'a <a class="struct" href="../../ocl/struct.Device.html" title="struct ocl::Device">Device</a>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#225-227' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</p>
- </div></div><h3 id='impl-From%3CDeviceIdCore%3E' 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><<a class="struct" href="../../ocl_core/types/abs/struct.DeviceId.html" title="struct ocl_core::types::abs::DeviceId">DeviceIdCore</a>> for <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code><a href='#impl-From%3CDeviceIdCore%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#230-234' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.from-7' class="method"><span id='from.v-7' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(device: <a class="struct" href="../../ocl_core/types/abs/struct.DeviceId.html" title="struct ocl_core::types::abs::DeviceId">DeviceIdCore</a>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#231-233' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</p>
- </div></div><h3 id='impl-From%3C%26%27a%20DeviceIdCore%3E' class='impl'><span class='in-band'><code>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../../ocl_core/types/abs/struct.DeviceId.html" title="struct ocl_core::types::abs::DeviceId">DeviceIdCore</a>> for <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code><a href='#impl-From%3C%26%27a%20DeviceIdCore%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#236-240' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.from-8' class="method"><span id='from.v-8' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(device: &'a <a class="struct" href="../../ocl_core/types/abs/struct.DeviceId.html" title="struct ocl_core::types::abs::DeviceId">DeviceIdCore</a>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#237-239' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</p>
- </div></div><h3 id='impl-From%3CDeviceType%3E' 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><<a class="struct" href="../../ocl/flags/struct.DeviceType.html" title="struct ocl::flags::DeviceType">DeviceType</a>> for <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code><a href='#impl-From%3CDeviceType%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#242-246' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.from-9' class="method"><span id='from.v-9' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(flags: <a class="struct" href="../../ocl/flags/struct.DeviceType.html" title="struct ocl::flags::DeviceType">DeviceType</a>) -> <a class="enum" href="../../ocl/builders/enum.DeviceSpecifier.html" title="enum ocl::builders::DeviceSpecifier">DeviceSpecifier</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/standard/device.rs.html#243-245' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</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><kbd>?</kbd></dt>
- <dd>Show this help dialog</dd>
- <dt><kbd>S</kbd></dt>
- <dd>Focus the search field</dd>
- <dt><kbd>↑</kbd></dt>
- <dd>Move up in search results</dd>
- <dt><kbd>↓</kbd></dt>
- <dd>Move down in search results</dd>
- <dt><kbd>↹</kbd></dt>
- <dd>Switch tab</dd>
- <dt><kbd>⏎</kbd></dt>
- <dd>Go to active search result</dd>
- <dt><kbd>+</kbd></dt>
- <dd>Expand all sections</dd>
- <dt><kbd>-</kbd></dt>
- <dd>Collapse 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="../../main.js"></script>
- <script defer src="../../search-index.js"></script>
- </body>
- </html>
|