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 `DeviceInfo` enum in crate `ocl_core`.">
    <meta name="keywords" content="rust, rustlang, rust-lang, DeviceInfo">

    <title>ocl_core::DeviceInfo - 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 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">
        
        <p class='location'><a href='index.html'>ocl_core</a></p><script>window.sidebarCurrent = {name: 'DeviceInfo', ty: 'enum', 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'>Enum <a href='index.html'>ocl_core</a>::<wbr><a class="enum" href=''>DeviceInfo</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></span></h1>
<pre class='rust enum'><div class="docblock attributes">#[repr(C)]
</div>pub enum DeviceInfo {
    Type,
    VendorId,
    MaxComputeUnits,
    MaxWorkItemDimensions,
    MaxWorkGroupSize,
    MaxWorkItemSizes,
    PreferredVectorWidthChar,
    PreferredVectorWidthShort,
    PreferredVectorWidthInt,
    PreferredVectorWidthLong,
    PreferredVectorWidthFloat,
    PreferredVectorWidthDouble,
    MaxClockFrequency,
    AddressBits,
    MaxReadImageArgs,
    MaxWriteImageArgs,
    MaxMemAllocSize,
    Image2dMaxWidth,
    Image2dMaxHeight,
    Image3dMaxWidth,
    Image3dMaxHeight,
    Image3dMaxDepth,
    ImageSupport,
    MaxParameterSize,
    MaxSamplers,
    MemBaseAddrAlign,
    MinDataTypeAlignSize,
    SingleFpConfig,
    GlobalMemCacheType,
    GlobalMemCachelineSize,
    GlobalMemCacheSize,
    GlobalMemSize,
    MaxConstantBufferSize,
    MaxConstantArgs,
    LocalMemType,
    LocalMemSize,
    ErrorCorrectionSupport,
    ProfilingTimerResolution,
    EndianLittle,
    Available,
    CompilerAvailable,
    ExecutionCapabilities,
    QueueProperties,
    Name,
    Vendor,
    DriverVersion,
    Profile,
    Version,
    Extensions,
    Platform,
    DoubleFpConfig,
    HalfFpConfig,
    PreferredVectorWidthHalf,
    HostUnifiedMemory,
    NativeVectorWidthChar,
    NativeVectorWidthShort,
    NativeVectorWidthInt,
    NativeVectorWidthLong,
    NativeVectorWidthFloat,
    NativeVectorWidthDouble,
    NativeVectorWidthHalf,
    OpenclCVersion,
    LinkerAvailable,
    BuiltInKernels,
    ImageMaxBufferSize,
    ImageMaxArraySize,
    ParentDevice,
    PartitionMaxSubDevices,
    PartitionProperties,
    PartitionAffinityDomain,
    PartitionType,
    ReferenceCount,
    PreferredInteropUserSync,
    PrintfBufferSize,
    ImagePitchAlignment,
    ImageBaseAddressAlignment,
}</pre><div class='docblock'><p>cl_device_info</p>
</div><h2 class='variants'>Variants</h2>
<span id='variant.Type' class='variant'><span id='Type.v' class='invisible'><code>Type</code></span></span><span id='variant.VendorId' class='variant'><span id='VendorId.v' class='invisible'><code>VendorId</code></span></span><span id='variant.MaxComputeUnits' class='variant'><span id='MaxComputeUnits.v' class='invisible'><code>MaxComputeUnits</code></span></span><span id='variant.MaxWorkItemDimensions' class='variant'><span id='MaxWorkItemDimensions.v' class='invisible'><code>MaxWorkItemDimensions</code></span></span><span id='variant.MaxWorkGroupSize' class='variant'><span id='MaxWorkGroupSize.v' class='invisible'><code>MaxWorkGroupSize</code></span></span><span id='variant.MaxWorkItemSizes' class='variant'><span id='MaxWorkItemSizes.v' class='invisible'><code>MaxWorkItemSizes</code></span></span><span id='variant.PreferredVectorWidthChar' class='variant'><span id='PreferredVectorWidthChar.v' class='invisible'><code>PreferredVectorWidthChar</code></span></span><span id='variant.PreferredVectorWidthShort' class='variant'><span id='PreferredVectorWidthShort.v' class='invisible'><code>PreferredVectorWidthShort</code></span></span><span id='variant.PreferredVectorWidthInt' class='variant'><span id='PreferredVectorWidthInt.v' class='invisible'><code>PreferredVectorWidthInt</code></span></span><span id='variant.PreferredVectorWidthLong' class='variant'><span id='PreferredVectorWidthLong.v' class='invisible'><code>PreferredVectorWidthLong</code></span></span><span id='variant.PreferredVectorWidthFloat' class='variant'><span id='PreferredVectorWidthFloat.v' class='invisible'><code>PreferredVectorWidthFloat</code></span></span><span id='variant.PreferredVectorWidthDouble' class='variant'><span id='PreferredVectorWidthDouble.v' class='invisible'><code>PreferredVectorWidthDouble</code></span></span><span id='variant.MaxClockFrequency' class='variant'><span id='MaxClockFrequency.v' class='invisible'><code>MaxClockFrequency</code></span></span><span id='variant.AddressBits' class='variant'><span id='AddressBits.v' class='invisible'><code>AddressBits</code></span></span><span id='variant.MaxReadImageArgs' class='variant'><span id='MaxReadImageArgs.v' class='invisible'><code>MaxReadImageArgs</code></span></span><span id='variant.MaxWriteImageArgs' class='variant'><span id='MaxWriteImageArgs.v' class='invisible'><code>MaxWriteImageArgs</code></span></span><span id='variant.MaxMemAllocSize' class='variant'><span id='MaxMemAllocSize.v' class='invisible'><code>MaxMemAllocSize</code></span></span><span id='variant.Image2dMaxWidth' class='variant'><span id='Image2dMaxWidth.v' class='invisible'><code>Image2dMaxWidth</code></span></span><span id='variant.Image2dMaxHeight' class='variant'><span id='Image2dMaxHeight.v' class='invisible'><code>Image2dMaxHeight</code></span></span><span id='variant.Image3dMaxWidth' class='variant'><span id='Image3dMaxWidth.v' class='invisible'><code>Image3dMaxWidth</code></span></span><span id='variant.Image3dMaxHeight' class='variant'><span id='Image3dMaxHeight.v' class='invisible'><code>Image3dMaxHeight</code></span></span><span id='variant.Image3dMaxDepth' class='variant'><span id='Image3dMaxDepth.v' class='invisible'><code>Image3dMaxDepth</code></span></span><span id='variant.ImageSupport' class='variant'><span id='ImageSupport.v' class='invisible'><code>ImageSupport</code></span></span><span id='variant.MaxParameterSize' class='variant'><span id='MaxParameterSize.v' class='invisible'><code>MaxParameterSize</code></span></span><span id='variant.MaxSamplers' class='variant'><span id='MaxSamplers.v' class='invisible'><code>MaxSamplers</code></span></span><span id='variant.MemBaseAddrAlign' class='variant'><span id='MemBaseAddrAlign.v' class='invisible'><code>MemBaseAddrAlign</code></span></span><span id='variant.MinDataTypeAlignSize' class='variant'><span id='MinDataTypeAlignSize.v' class='invisible'><code>MinDataTypeAlignSize</code></span></span><span id='variant.SingleFpConfig' class='variant'><span id='SingleFpConfig.v' class='invisible'><code>SingleFpConfig</code></span></span><span id='variant.GlobalMemCacheType' class='variant'><span id='GlobalMemCacheType.v' class='invisible'><code>GlobalMemCacheType</code></span></span><span id='variant.GlobalMemCachelineSize' class='variant'><span id='GlobalMemCachelineSize.v' class='invisible'><code>GlobalMemCachelineSize</code></span></span><span id='variant.GlobalMemCacheSize' class='variant'><span id='GlobalMemCacheSize.v' class='invisible'><code>GlobalMemCacheSize</code></span></span><span id='variant.GlobalMemSize' class='variant'><span id='GlobalMemSize.v' class='invisible'><code>GlobalMemSize</code></span></span><span id='variant.MaxConstantBufferSize' class='variant'><span id='MaxConstantBufferSize.v' class='invisible'><code>MaxConstantBufferSize</code></span></span><span id='variant.MaxConstantArgs' class='variant'><span id='MaxConstantArgs.v' class='invisible'><code>MaxConstantArgs</code></span></span><span id='variant.LocalMemType' class='variant'><span id='LocalMemType.v' class='invisible'><code>LocalMemType</code></span></span><span id='variant.LocalMemSize' class='variant'><span id='LocalMemSize.v' class='invisible'><code>LocalMemSize</code></span></span><span id='variant.ErrorCorrectionSupport' class='variant'><span id='ErrorCorrectionSupport.v' class='invisible'><code>ErrorCorrectionSupport</code></span></span><span id='variant.ProfilingTimerResolution' class='variant'><span id='ProfilingTimerResolution.v' class='invisible'><code>ProfilingTimerResolution</code></span></span><span id='variant.EndianLittle' class='variant'><span id='EndianLittle.v' class='invisible'><code>EndianLittle</code></span></span><span id='variant.Available' class='variant'><span id='Available.v' class='invisible'><code>Available</code></span></span><span id='variant.CompilerAvailable' class='variant'><span id='CompilerAvailable.v' class='invisible'><code>CompilerAvailable</code></span></span><span id='variant.ExecutionCapabilities' class='variant'><span id='ExecutionCapabilities.v' class='invisible'><code>ExecutionCapabilities</code></span></span><span id='variant.QueueProperties' class='variant'><span id='QueueProperties.v' class='invisible'><code>QueueProperties</code></span></span><span id='variant.Name' class='variant'><span id='Name.v' class='invisible'><code>Name</code></span></span><span id='variant.Vendor' class='variant'><span id='Vendor.v' class='invisible'><code>Vendor</code></span></span><span id='variant.DriverVersion' class='variant'><span id='DriverVersion.v' class='invisible'><code>DriverVersion</code></span></span><span id='variant.Profile' class='variant'><span id='Profile.v' class='invisible'><code>Profile</code></span></span><span id='variant.Version' class='variant'><span id='Version.v' class='invisible'><code>Version</code></span></span><span id='variant.Extensions' class='variant'><span id='Extensions.v' class='invisible'><code>Extensions</code></span></span><span id='variant.Platform' class='variant'><span id='Platform.v' class='invisible'><code>Platform</code></span></span><span id='variant.DoubleFpConfig' class='variant'><span id='DoubleFpConfig.v' class='invisible'><code>DoubleFpConfig</code></span></span><span id='variant.HalfFpConfig' class='variant'><span id='HalfFpConfig.v' class='invisible'><code>HalfFpConfig</code></span></span><span id='variant.PreferredVectorWidthHalf' class='variant'><span id='PreferredVectorWidthHalf.v' class='invisible'><code>PreferredVectorWidthHalf</code></span></span><span id='variant.HostUnifiedMemory' class='variant'><span id='HostUnifiedMemory.v' class='invisible'><code>HostUnifiedMemory</code></span></span><span id='variant.NativeVectorWidthChar' class='variant'><span id='NativeVectorWidthChar.v' class='invisible'><code>NativeVectorWidthChar</code></span></span><span id='variant.NativeVectorWidthShort' class='variant'><span id='NativeVectorWidthShort.v' class='invisible'><code>NativeVectorWidthShort</code></span></span><span id='variant.NativeVectorWidthInt' class='variant'><span id='NativeVectorWidthInt.v' class='invisible'><code>NativeVectorWidthInt</code></span></span><span id='variant.NativeVectorWidthLong' class='variant'><span id='NativeVectorWidthLong.v' class='invisible'><code>NativeVectorWidthLong</code></span></span><span id='variant.NativeVectorWidthFloat' class='variant'><span id='NativeVectorWidthFloat.v' class='invisible'><code>NativeVectorWidthFloat</code></span></span><span id='variant.NativeVectorWidthDouble' class='variant'><span id='NativeVectorWidthDouble.v' class='invisible'><code>NativeVectorWidthDouble</code></span></span><span id='variant.NativeVectorWidthHalf' class='variant'><span id='NativeVectorWidthHalf.v' class='invisible'><code>NativeVectorWidthHalf</code></span></span><span id='variant.OpenclCVersion' class='variant'><span id='OpenclCVersion.v' class='invisible'><code>OpenclCVersion</code></span></span><span id='variant.LinkerAvailable' class='variant'><span id='LinkerAvailable.v' class='invisible'><code>LinkerAvailable</code></span></span><span id='variant.BuiltInKernels' class='variant'><span id='BuiltInKernels.v' class='invisible'><code>BuiltInKernels</code></span></span><span id='variant.ImageMaxBufferSize' class='variant'><span id='ImageMaxBufferSize.v' class='invisible'><code>ImageMaxBufferSize</code></span></span><span id='variant.ImageMaxArraySize' class='variant'><span id='ImageMaxArraySize.v' class='invisible'><code>ImageMaxArraySize</code></span></span><span id='variant.ParentDevice' class='variant'><span id='ParentDevice.v' class='invisible'><code>ParentDevice</code></span></span><span id='variant.PartitionMaxSubDevices' class='variant'><span id='PartitionMaxSubDevices.v' class='invisible'><code>PartitionMaxSubDevices</code></span></span><span id='variant.PartitionProperties' class='variant'><span id='PartitionProperties.v' class='invisible'><code>PartitionProperties</code></span></span><span id='variant.PartitionAffinityDomain' class='variant'><span id='PartitionAffinityDomain.v' class='invisible'><code>PartitionAffinityDomain</code></span></span><span id='variant.PartitionType' class='variant'><span id='PartitionType.v' class='invisible'><code>PartitionType</code></span></span><span id='variant.ReferenceCount' class='variant'><span id='ReferenceCount.v' class='invisible'><code>ReferenceCount</code></span></span><span id='variant.PreferredInteropUserSync' class='variant'><span id='PreferredInteropUserSync.v' class='invisible'><code>PreferredInteropUserSync</code></span></span><span id='variant.PrintfBufferSize' class='variant'><span id='PrintfBufferSize.v' class='invisible'><code>PrintfBufferSize</code></span></span><span id='variant.ImagePitchAlignment' class='variant'><span id='ImagePitchAlignment.v' class='invisible'><code>ImagePitchAlignment</code></span></span><span id='variant.ImageBaseAddressAlignment' class='variant'><span id='ImageBaseAddressAlignment.v' class='invisible'><code>ImageBaseAddressAlignment</code></span></span><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="enum" href="../ocl_core/enum.DeviceInfo.html" title="enum ocl_core::DeviceInfo">DeviceInfo</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl_core/lib.rs.html#742' 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="enum" href="../ocl_core/enum.DeviceInfo.html" title="enum ocl_core::DeviceInfo">DeviceInfo</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="enum" href="../ocl_core/enum.DeviceInfo.html" title="enum ocl_core::DeviceInfo">DeviceInfo</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl_core/lib.rs.html#742' 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="enum" href="../ocl_core/enum.DeviceInfo.html" title="enum ocl_core::DeviceInfo">DeviceInfo</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl_core/lib.rs.html#742' 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="enum" href="../ocl_core/enum.DeviceInfo.html" title="enum ocl_core::DeviceInfo">DeviceInfo</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/ocl_core/lib.rs.html#742' 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="enum" href="../ocl_core/enum.DeviceInfo.html" title="enum ocl_core::DeviceInfo">DeviceInfo</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, other: &amp;Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div></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="../num_traits/cast/trait.FromPrimitive.html" title="trait num_traits::cast::FromPrimitive">FromPrimitive</a> for <a class="enum" href="../ocl_core/enum.DeviceInfo.html" title="enum ocl_core::DeviceInfo">DeviceInfo</a></code></span><span class='out-of-band'></span></h3>
<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;Self&gt;</code></span></h4>
<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>
</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;Self&gt;</code></span></h4>
<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>
</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></h4>
<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>
</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></h4>
<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>
</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></h4>
<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>
</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></h4>
<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>
</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></h4>
<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>
</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></h4>
<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>
</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></h4>
<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>
</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></h4>
<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>
</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></h4>
<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>
</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></h4>
<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>
</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_core";
    </script>
    <script src="../jquery.js"></script>
    <script src="../main.js"></script>
    <script defer src="../search-index.js"></script>
</body>
</html>