<linkrel="alternate icon"type="image/png"href="../../../favicon-32x32.png"><styletype="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><bodyclass="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../../../game/index.html'><divclass='logo-container rust-logo'><imgsrc='../../../rust-logo.png'alt='logo'></div></a><pclass="location">Trait GameplayState</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#required-methods">Required Methods</a><divclass="sidebar-links"><ahref="#tymethod.draw">draw</a><ahref="#tymethod.event">event</a><ahref="#tymethod.recreate_panels">recreate_panels</a></div><aclass="sidebar-title"href="#provided-methods">Provided Methods</a><divclass="sidebar-links"><ahref="#method.can_examine_objects">can_examine_objects</a><ahref="#method.can_move_canvas">can_move_canvas</a><ahref="#method.has_agent_meter">has_agent_meter</a><ahref="#method.has_common">has_common</a><ahref="#method.has_minimap">has_minimap</a><ahref="#method.has_speed">has_speed</a><ahref="#method.has_time_panel">has_time_panel</a><ahref="#method.has_tool_panel">has_tool_panel</a><ahref="#method.on_destroy">on_destroy</a></div><aclass="sidebar-title"href="#implementations">Methods</a><divclass="sidebar-links"><ahref="#method.downcast">downcast</a><ahref="#method.downcast_mut">downcast_mut</a><ahref="#method.downcast_rc">downcast_rc</a><ahref="#method.downcast_ref">downcast_ref</a><ahref="#method.is">is</a></div><aclass="sidebar-title"href="#implementors">Implementors</a></div><pclass="location"><ahref="../../index.html">game</a>::<wbr><ahref="../index.html">sandbox</a>::<wbr><ahref="index.html">gameplay</a></p><script>window.sidebarCurrent={name:"GameplayState",ty:"trait",relpath:""};</script><scriptdefersrc="sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"><imgsrc="../../../brush.svg"width="18"alt="Pick another theme!"></button><divid="theme-choices"role="menu"></div></div><scriptsrc="../../../theme.js"></script><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><spanclass="help-button">?</span>
</div><h4id="method.downcast"class="method"><code>pub fn <ahref="#method.downcast"class="fnname">downcast</a><__T: <aclass="trait"href="../../../game/sandbox/gameplay/trait.GameplayState.html"title="trait game::sandbox::gameplay::GameplayState">GameplayState</a>>(<br> self: <aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><Self><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><__T>, <aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><Self>></code><aclass="srclink"href="../../../src/game/sandbox/gameplay/mod.rs.html#78"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns a boxed object from a boxed trait object if the underlying object is of type
</div><h4id="method.downcast_rc"class="method"><code>pub fn <ahref="#method.downcast_rc"class="fnname">downcast_rc</a><__T: <aclass="trait"href="../../../game/sandbox/gameplay/trait.GameplayState.html"title="trait game::sandbox::gameplay::GameplayState">GameplayState</a>>(<br> self: <aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html"title="struct alloc::rc::Rc">Rc</a><Self><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html"title="struct alloc::rc::Rc">Rc</a><__T>, <aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html"title="struct alloc::rc::Rc">Rc</a><Self>></code><aclass="srclink"href="../../../src/game/sandbox/gameplay/mod.rs.html#78"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns an <code>Rc</code>-ed object from an <code>Rc</code>-ed trait object if the underlying object is of
</div><h4id="method.downcast_ref"class="method"><code>pub fn <ahref="#method.downcast_ref"class="fnname">downcast_ref</a><__T: <aclass="trait"href="../../../game/sandbox/gameplay/trait.GameplayState.html"title="trait game::sandbox::gameplay::GameplayState">GameplayState</a>>(&self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>__T></code><aclass="srclink"href="../../../src/game/sandbox/gameplay/mod.rs.html#78"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns a reference to the object within the trait object if it is of type <code>__T</code>, or
</div><h4id="method.downcast_mut"class="method"><code>pub fn <ahref="#method.downcast_mut"class="fnname">downcast_mut</a><__T: <aclass="trait"href="../../../game/sandbox/gameplay/trait.GameplayState.html"title="trait game::sandbox::gameplay::GameplayState">GameplayState</a>>(&mut self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>__T></code><aclass="srclink"href="../../../src/game/sandbox/gameplay/mod.rs.html#78"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns a mutable reference to the object within the trait object if it is of type