123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <!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 `ContextProperties` struct in crate `ocl`.">
- <meta name="keywords" content="rust, rustlang, rust-lang, ContextProperties">
- <title>ocl::builders::ContextProperties - 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 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">
- <div class="sidebar-menu">☰</div>
-
- <p class='location'>Struct ContextProperties</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a><a href="#method.platform">platform</a><a href="#method.interop_user_sync">interop_user_sync</a><a href="#method.gl_context">gl_context</a><a href="#method.glx_display">glx_display</a><a href="#method.wgl_hdc">wgl_hdc</a><a href="#method.cgl_sharegroup">cgl_sharegroup</a><a href="#method.egl_display">egl_display</a><a href="#method.property_value">property_value</a><a href="#method.set_platform">set_platform</a><a href="#method.set_interop_user_sync">set_interop_user_sync</a><a href="#method.set_gl_context">set_gl_context</a><a href="#method.set_glx_display">set_glx_display</a><a href="#method.set_wgl_hdc">set_wgl_hdc</a><a href="#method.set_cgl_sharegroup">set_cgl_sharegroup</a><a href="#method.set_egl_display">set_egl_display</a><a href="#method.set_property_value">set_property_value</a><a href="#method.get_platform">get_platform</a><a href="#method.contains_gl_context_or_sharegroup">contains_gl_context_or_sharegroup</a><a href="#method.to_raw">to_raw</a><a href="#method.extract_property_from_raw">extract_property_from_raw</a><a href="#method.from_raw">from_raw</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-From%3CContextProperties%3E">From<ContextProperties></a><a href="#impl-Debug">Debug</a></div></div><p class='location'><a href='../index.html'>ocl</a>::<wbr><a href='index.html'>builders</a></p><script>window.sidebarCurrent = {name: 'ContextProperties', ty: 'struct', 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'>Struct <a href='../index.html'>ocl</a>::<wbr><a href='index.html'>builders</a>::<wbr><a class="struct" href=''>ContextProperties</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_core/types/structs.rs.html#305-308' title='goto source code'>[src]</a></span></h1>
- <pre class='rust struct'>pub struct ContextProperties { /* fields omitted */ }</pre><div class='docblock'><p>Context properties list.</p>
- <p>[MINIMALLY TESTED]</p>
- <p>TODO: Check for duplicate property assignments.</p>
- </div>
- <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="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a></code><a href='#impl' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#310-654' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><code>pub fn <a href='#method.new' class='fnname'>new</a>() -> <a class="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#312-317' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns an empty new list of context properties</p>
- </div><h4 id='method.platform' class="method"><span id='platform.v' class='invisible'><code>pub fn <a href='#method.platform' class='fnname'>platform</a><P>(self, platform: P) -> <a class="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a> <span class="where fmt-newline">where<br> P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ocl_core/types/abs/struct.PlatformId.html" title="struct ocl_core::types::abs::PlatformId">PlatformId</a>>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#320-323' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies a platform (builder-style).</p>
- </div><h4 id='method.interop_user_sync' class="method"><span id='interop_user_sync.v' class='invisible'><code>pub fn <a href='#method.interop_user_sync' class='fnname'>interop_user_sync</a>(self, sync: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> <a class="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#327-330' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies whether the user is responsible for synchronization between
- OpenCL and other APIs (builder-style).</p>
- </div><h4 id='method.gl_context' class="method"><span id='gl_context.v' class='invisible'><code>pub fn <a href='#method.gl_context' class='fnname'>gl_context</a>(self, gl_ctx: <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>) -> <a class="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#333-336' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies an OpenGL context handle (builder-style).</p>
- </div><h4 id='method.glx_display' class="method"><span id='glx_display.v' class='invisible'><code>pub fn <a href='#method.glx_display' class='fnname'>glx_display</a>(self, glx_disp: <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>) -> <a class="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#339-342' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies a Display pointer for the GLX context (builder-style).</p>
- </div><h4 id='method.wgl_hdc' class="method"><span id='wgl_hdc.v' class='invisible'><code>pub fn <a href='#method.wgl_hdc' class='fnname'>wgl_hdc</a>(self, wgl_hdc: <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>) -> <a class="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#345-348' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies a Display pointer for the WGL HDC (builder-style).</p>
- </div><h4 id='method.cgl_sharegroup' class="method"><span id='cgl_sharegroup.v' class='invisible'><code>pub fn <a href='#method.cgl_sharegroup' class='fnname'>cgl_sharegroup</a>(self, gl_sharegroup: <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>) -> <a class="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#352-355' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies an OpenGL context CGL share group to associate the OpenCL
- context with (builder-style).</p>
- </div><h4 id='method.egl_display' class="method"><span id='egl_display.v' class='invisible'><code>pub fn <a href='#method.egl_display' class='fnname'>egl_display</a>(self, egl_disp: <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>) -> <a class="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#358-361' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies a pointer for the EGL display (builder-style).</p>
- </div><h4 id='method.property_value' class="method"><span id='property_value.v' class='invisible'><code>pub fn <a href='#method.property_value' class='fnname'>property_value</a>(self, prop: <a class="enum" href="../../ocl/enums/enum.ContextPropertyValue.html" title="enum ocl::enums::ContextPropertyValue">ContextPropertyValue</a>) -> <a class="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#365-368' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Pushes a <code>ContextPropertyValue</code> onto this list of properties
- (builder-style).</p>
- </div><h4 id='method.set_platform' class="method"><span id='set_platform.v' class='invisible'><code>pub fn <a href='#method.set_platform' class='fnname'>set_platform</a><P>(&mut self, platform: P) <span class="where fmt-newline">where<br> P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../../ocl_core/types/abs/struct.PlatformId.html" title="struct ocl_core::types::abs::PlatformId">PlatformId</a>>, </span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#371-373' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies a platform.</p>
- </div><h4 id='method.set_interop_user_sync' class="method"><span id='set_interop_user_sync.v' class='invisible'><code>pub fn <a href='#method.set_interop_user_sync' class='fnname'>set_interop_user_sync</a>(&mut self, sync: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#377-379' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies whether the user is responsible for synchronization between
- OpenCL and other APIs.</p>
- </div><h4 id='method.set_gl_context' class="method"><span id='set_gl_context.v' class='invisible'><code>pub fn <a href='#method.set_gl_context' class='fnname'>set_gl_context</a>(&mut self, gl_ctx: <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><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#382-385' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies an OpenGL context handle.</p>
- </div><h4 id='method.set_glx_display' class="method"><span id='set_glx_display.v' class='invisible'><code>pub fn <a href='#method.set_glx_display' class='fnname'>set_glx_display</a>(&mut self, glx_disp: <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><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#388-391' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies a Display pointer for the GLX context.</p>
- </div><h4 id='method.set_wgl_hdc' class="method"><span id='set_wgl_hdc.v' class='invisible'><code>pub fn <a href='#method.set_wgl_hdc' class='fnname'>set_wgl_hdc</a>(&mut self, wgl_hdc: <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><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#394-397' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies a Display pointer for the WGL HDC.</p>
- </div><h4 id='method.set_cgl_sharegroup' class="method"><span id='set_cgl_sharegroup.v' class='invisible'><code>pub fn <a href='#method.set_cgl_sharegroup' class='fnname'>set_cgl_sharegroup</a>(&mut self, gl_sharegroup: <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><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#401-404' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies an OpenGL context CGL share group to associate the OpenCL
- context with.</p>
- </div><h4 id='method.set_egl_display' class="method"><span id='set_egl_display.v' class='invisible'><code>pub fn <a href='#method.set_egl_display' class='fnname'>set_egl_display</a>(&mut self, egl_disp: <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><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#407-410' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Specifies a pointer for the EGL display.</p>
- </div><h4 id='method.set_property_value' class="method"><span id='set_property_value.v' class='invisible'><code>pub fn <a href='#method.set_property_value' class='fnname'>set_property_value</a>(&mut self, prop: <a class="enum" href="../../ocl/enums/enum.ContextPropertyValue.html" title="enum ocl::enums::ContextPropertyValue">ContextPropertyValue</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#413-449' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Pushes a <code>ContextPropertyValue</code> onto this list of properties.</p>
- </div><h4 id='method.get_platform' class="method"><span id='get_platform.v' class='invisible'><code>pub fn <a href='#method.get_platform' class='fnname'>get_platform</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../ocl_core/types/abs/struct.PlatformId.html" title="struct ocl_core::types::abs::PlatformId">PlatformId</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#452-463' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns a platform id or none.</p>
- </div><h4 id='method.contains_gl_context_or_sharegroup' class="method"><span id='contains_gl_context_or_sharegroup.v' class='invisible'><code>pub fn <a href='#method.contains_gl_context_or_sharegroup' class='fnname'>contains_gl_context_or_sharegroup</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#467-469' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns true if this set of context properties specifies any OpenGL
- context or sharegroup to associate with.</p>
- </div><h4 id='method.to_raw' class="method"><div class="important-traits"><div class='tooltip'>ⓘ<span class='tooltiptext'>Important traits for <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.u8.html">u8</a>></span></div><div class="content hidden"><h3 class="important">Important traits for <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.u8.html">u8</a>></h3><code class="content"><span class="where fmt-newline">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <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.u8.html">u8</a>></span></code></div></div><span id='to_raw.v' class='invisible'><code>pub fn <a href='#method.to_raw' class='fnname'>to_raw</a>(&self) -> <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.isize.html">isize</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#479-524' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Converts this list into a packed-word representation as specified
- <a href="https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateContext.html">here</a>.</p>
- </div><h4 id='method.extract_property_from_raw' class="method"><span id='extract_property_from_raw.v' class='invisible'><code>pub unsafe fn <a href='#method.extract_property_from_raw' class='fnname'>extract_property_from_raw</a>(<br> property: <a class="enum" href="../../ocl/enums/enum.ContextProperty.html" title="enum ocl::enums::ContextProperty">ContextProperty</a>, <br> raw_context_properties: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../../ocl/enums/enum.ContextPropertyValue.html" title="enum ocl::enums::ContextPropertyValue">ContextPropertyValue</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#527-555' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Returns a single context property value.</p>
- </div><h4 id='method.from_raw' class="method"><span id='from_raw.v' class='invisible'><code>pub unsafe fn <a href='#method.from_raw' class='fnname'>from_raw</a>(<br> raw_context_properties: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a>, <a class="struct" href="../../ocl_core/error/struct.Error.html" title="struct ocl_core::error::Error">Error</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#562-653' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Converts raw stuff into other stuff.</p>
- </div></div>
- <h2 id='implementations' class='small-section-header'>
- Trait Implementations<a href='#implementations' class='anchor'></a>
- </h2>
- <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="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a></code><a href='#impl-Clone' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#304' 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="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#304' 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-From%3CContextProperties%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/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a>> for <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.isize.html">isize</a>></code><a href='#impl-From%3CContextProperties%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#662-666' title='goto source code'>[src]</a></span></h3>
- <div class='impl-items'><h4 id='method.from' class="method"><div class="important-traits"><div class='tooltip'>ⓘ<span class='tooltiptext'>Important traits for <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.u8.html">u8</a>></span></div><div class="content hidden"><h3 class="important">Important traits for <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.u8.html">u8</a>></h3><code class="content"><span class="where fmt-newline">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <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.u8.html">u8</a>></span></code></div></div><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>(cp: <a class="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</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.isize.html">isize</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#663-665' title='goto source code'>[src]</a></span></h4>
- <div class='docblock'><p>Performs the conversion.</p>
- </div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../ocl/builders/struct.ContextProperties.html" title="struct ocl::builders::ContextProperties">ContextProperties</a></code><a href='#impl-Debug' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#304' 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="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl_core/types/structs.rs.html#304' 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></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>
|