<!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 `Property` trait in crate `browser_window`."><meta name="keywords" content="rust, rustlang, rust-lang, Property"><title>browser_window::Property - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[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><a href='../browser_window/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Trait Property</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.get">get</a><a href="#tymethod.set">set</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>browser_window</a></p><script>window.sidebarCurrent = {name: 'Property', ty: 'trait', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><span class="help-button">?</span>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><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/browser_window/prop.rs.html#48-51' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>browser_window</a>::<wbr><a class="trait" href=''>Property</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait Property<G, S> {
fn <a href='#tymethod.get' class='fnname'>get</a>(&self) -> G;
<div class='item-spacer'></div> fn <a href='#tymethod.set' class='fnname'>set</a>(&self, value: S);
}</pre></div><div class='docblock'><p>A property is something that has a setter and a getter.</p>
</div><h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.get' class='method'><code>fn <a href='#tymethod.get' class='fnname'>get</a>(&self) -> G</code></h3><h3 id='tymethod.set' class='method'><code>fn <a href='#tymethod.set' class='fnname'>set</a>(&self, value: S)</code></h3></div><span class='loading-content'>Loading content...</span><h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-Property%3Cu8%2C%20u8%3E' class='impl'><code class='in-band'>impl<'a> Property<<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>> for <a class="struct" href="../browser_window/window/struct.Opacity.html" title="struct browser_window::window::Opacity">Opacity</a><'a></code><a href='#impl-Property%3Cu8%2C%20u8%3E' class='anchor'></a><a class='srclink' href='../src/browser_window/prop.rs.html#67-71' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.get' class="method hidden"><code>fn <a href='#method.get' class='fnname'>get</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code><a class='srclink' href='../src/browser_window/prop.rs.html#68' title='goto source code'>[src]</a></h4><h4 id='method.set' class="method hidden"><code>fn <a href='#method.set' class='fnname'>set</a>(&self, val: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>)</code><a class='srclink' href='../src/browser_window/prop.rs.html#70' title='goto source code'>[src]</a></h4></div><h3 id='impl-Property%3Ccbw_Dims2D%2C%20cbw_Dims2D%3E' class='impl'><code class='in-band'>impl<'a> Property<<a class="struct" href="../browser_window_c/bindings/struct.cbw_Dims2D.html" title="struct browser_window_c::bindings::cbw_Dims2D">cbw_Dims2D</a>, <a class="struct" href="../browser_window_c/bindings/struct.cbw_Dims2D.html" title="struct browser_window_c::bindings::cbw_Dims2D">cbw_Dims2D</a>> for <a class="struct" href="../browser_window/window/struct.ContentDimensions.html" title="struct browser_window::window::ContentDimensions">ContentDimensions</a><'a></code><a href='#impl-Property%3Ccbw_Dims2D%2C%20cbw_Dims2D%3E' class='anchor'></a><a class='srclink' href='../src/browser_window/prop.rs.html#67-71' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.get-1' class="method hidden"><code>fn <a href='#method.get-1' class='fnname'>get</a>(&self) -> <a class="type" href="../browser_window_core/prelude/type.Dims2D.html" title="type browser_window_core::prelude::Dims2D">Dims2D</a></code><a class='srclink' href='../src/browser_window/prop.rs.html#68' title='goto source code'>[src]</a></h4><h4 id='method.set-1' class="method hidden"><code>fn <a href='#method.set-1' class='fnname'>set</a>(&self, val: <a class="type" href="../browser_window_core/prelude/type.Dims2D.html" title="type browser_window_core::prelude::Dims2D">Dims2D</a>)</code><a class='srclink' href='../src/browser_window/prop.rs.html#70' title='goto source code'>[src]</a></h4></div><h3 id='impl-Property%3Ccbw_Dims2D%2C%20cbw_Dims2D%3E-1' class='impl'><code class='in-band'>impl<'a> Property<<a class="struct" href="../browser_window_c/bindings/struct.cbw_Dims2D.html" title="struct browser_window_c::bindings::cbw_Dims2D">cbw_Dims2D</a>, <a class="struct" href="../browser_window_c/bindings/struct.cbw_Dims2D.html" title="struct browser_window_c::bindings::cbw_Dims2D">cbw_Dims2D</a>> for <a class="struct" href="../browser_window/window/struct.WindowDimensions.html" title="struct browser_window::window::WindowDimensions">WindowDimensions</a><'a></code><a href='#impl-Property%3Ccbw_Dims2D%2C%20cbw_Dims2D%3E-1' class='anchor'></a><a class='srclink' href='../src/browser_window/prop.rs.html#67-71' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.get-2' class="method hidden"><code>fn <a href='#method.get-2' class='fnname'>get</a>(&self) -> <a class="type" href="../browser_window_core/prelude/type.Dims2D.html" title="type browser_window_core::prelude::Dims2D">Dims2D</a></code><a class='srclink' href='../src/browser_window/prop.rs.html#68' title='goto source code'>[src]</a></h4><h4 id='method.set-2' class="method hidden"><code>fn <a href='#method.set-2' class='fnname'>set</a>(&self, val: <a class="type" href="../browser_window_core/prelude/type.Dims2D.html" title="type browser_window_core::prelude::Dims2D">Dims2D</a>)</code><a class='srclink' href='../src/browser_window/prop.rs.html#70' title='goto source code'>[src]</a></h4></div><h3 id='impl-Property%3Ccbw_Pos2D%2C%20cbw_Pos2D%3E' class='impl'><code class='in-band'>impl<'a> Property<<a class="struct" href="../browser_window_c/bindings/struct.cbw_Pos2D.html" title="struct browser_window_c::bindings::cbw_Pos2D">cbw_Pos2D</a>, <a class="struct" href="../browser_window_c/bindings/struct.cbw_Pos2D.html" title="struct browser_window_c::bindings::cbw_Pos2D">cbw_Pos2D</a>> for <a class="struct" href="../browser_window/window/struct.Position.html" title="struct browser_window::window::Position">Position</a><'a></code><a href='#impl-Property%3Ccbw_Pos2D%2C%20cbw_Pos2D%3E' class='anchor'></a><a class='srclink' href='../src/browser_window/prop.rs.html#67-71' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.get-3' class="method hidden"><code>fn <a href='#method.get-3' class='fnname'>get</a>(&self) -> <a class="type" href="../browser_window_core/prelude/type.Pos2D.html" title="type browser_window_core::prelude::Pos2D">Pos2D</a></code><a class='srclink' href='../src/browser_window/prop.rs.html#68' title='goto source code'>[src]</a></h4><h4 id='method.set-3' class="method hidden"><code>fn <a href='#method.set-3' class='fnname'>set</a>(&self, val: <a class="type" href="../browser_window_core/prelude/type.Pos2D.html" title="type browser_window_core::prelude::Pos2D">Pos2D</a>)</code><a class='srclink' href='../src/browser_window/prop.rs.html#70' title='goto source code'>[src]</a></h4></div><h3 id='impl-Property%3CString%2C%20%26%27_%20str%3E' class='impl'><code class='in-band'>impl<'a, '_> Property<<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, &'_ <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> for <a class="struct" href="../browser_window/window/struct.Title.html" title="struct browser_window::window::Title">Title</a><'a></code><a href='#impl-Property%3CString%2C%20%26%27_%20str%3E' class='anchor'></a><a class='srclink' href='../src/browser_window/prop.rs.html#67-71' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.get-4' class="method hidden"><code>fn <a href='#method.get-4' class='fnname'>get</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a class='srclink' href='../src/browser_window/prop.rs.html#68' title='goto source code'>[src]</a></h4><h4 id='method.set-4' class="method hidden"><code>fn <a href='#method.set-4' class='fnname'>set</a>(&self, val: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/browser_window/prop.rs.html#70' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../implementors/browser_window/trait.Property.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "browser_window";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>