Files
rust-sdl2/sdl2/video/struct.WindowSurfaceRef.html
2020-07-14 14:12:44 +00:00

47 lines
52 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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 `WindowSurfaceRef` struct in crate `sdl2`."><meta name="keywords" content="rust, rustlang, rust-lang, WindowSurfaceRef"><title>sdl2::video::WindowSurfaceRef - 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="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></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">&#9776;</div><a href='../../sdl2/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Struct WindowSurfaceRef</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.finish">finish</a><a href="#method.update_window">update_window</a><a href="#method.update_window_rects">update_window_rects</a></div><a class="sidebar-title" href="#deref-methods">Methods from Deref&lt;Target=SurfaceRef&gt;</a><div class="sidebar-links"><a href="#method.alpha_mod">alpha_mod</a><a href="#method.blend_mode">blend_mode</a><a href="#method.blit">blit</a><a href="#method.blit_scaled">blit_scaled</a><a href="#method.clip_rect">clip_rect</a><a href="#method.color_key">color_key</a><a href="#method.color_mod">color_mod</a><a href="#method.convert">convert</a><a href="#method.convert_format">convert_format</a><a href="#method.disable_RLE">disable_RLE</a><a href="#method.enable_RLE">enable_RLE</a><a href="#method.fill_rect">fill_rect</a><a href="#method.fill_rects">fill_rects</a><a href="#method.height">height</a><a href="#method.lower_blit">lower_blit</a><a href="#method.lower_blit_scaled">lower_blit_scaled</a><a href="#method.must_lock">must_lock</a><a href="#method.pitch">pitch</a><a href="#method.pixel_format">pixel_format</a><a href="#method.pixel_format_enum">pixel_format_enum</a><a href="#method.raw">raw</a><a href="#method.rect">rect</a><a href="#method.save_bmp">save_bmp</a><a href="#method.save_bmp_rw">save_bmp_rw</a><a href="#method.set_alpha_mod">set_alpha_mod</a><a href="#method.set_blend_mode">set_blend_mode</a><a href="#method.set_clip_rect">set_clip_rect</a><a href="#method.set_color_key">set_color_key</a><a href="#method.set_color_mod">set_color_mod</a><a href="#method.set_palette">set_palette</a><a href="#method.size">size</a><a href="#method.width">width</a><a href="#method.with_lock">with_lock</a><a href="#method.with_lock_mut">with_lock_mut</a><a href="#method.without_lock">without_lock</a><a href="#method.without_lock_mut">without_lock_mut</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Deref">Deref</a><a href="#impl-DerefMut">DerefMut</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">!UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></div></div><p class='location'><a href='../index.html'>sdl2</a>::<wbr><a href='index.html'>video</a></p><script>window.sidebarCurrent = {name: 'WindowSurfaceRef', 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"><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><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'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/sdl2/video.rs.html#24' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='../index.html'>sdl2</a>::<wbr><a href='index.html'>video</a>::<wbr><a class="struct" href=''>WindowSurfaceRef</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'>pub struct WindowSurfaceRef&lt;'a&gt;(_, _);</pre></div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="struct" href="../../sdl2/video/struct.WindowSurfaceRef.html" title="struct sdl2::video::WindowSurfaceRef">WindowSurfaceRef</a>&lt;'a&gt;</code><a href='#impl' class='anchor'></a><a class='srclink' href='../../src/sdl2/video.rs.html#42-77' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.update_window' class="method"><code id='update_window.v'>pub fn <a href='#method.update_window' class='fnname'>update_window</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code><a class='srclink' href='../../src/sdl2/video.rs.html#46-54' title='goto source code'>[src]</a></h4><div class='docblock'><p>Updates the change made to the inner Surface to the Window it was created from.</p>
<p>This would effectively be the theoretical equivalent of <code>present</code> from a Canvas.</p>
</div><h4 id='method.update_window_rects' class="method"><code id='update_window_rects.v'>pub fn <a href='#method.update_window_rects' class='fnname'>update_window_rects</a>(&amp;self, rects: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code><a class='srclink' href='../../src/sdl2/video.rs.html#58-66' title='goto source code'>[src]</a></h4><div class='docblock'><p>Same as <code>update_window</code>, but only update the parts included in <code>rects</code> to the Window it was
created from.</p>
</div><h4 id='method.finish' class="method"><code id='finish.v'>pub fn <a href='#method.finish' class='fnname'>finish</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code><a class='srclink' href='../../src/sdl2/video.rs.html#74-76' title='goto source code'>[src]</a></h4><div class='docblock'><p>Gives up this WindowSurfaceRef, allowing to use the window freely again. Before being
destroyed, calls <code>update_window</code> one last time.</p>
<p>If you don't want to <code>update_window</code> one last time, simply Drop this struct. However
beware, since the Surface will still be in the state you left it the next time you will
call <code>window.surface()</code> again.</p>
</div></div><h2 id='deref-methods' class='small-section-header'>Methods from <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&lt;Target = <a class="struct" href="../../sdl2/surface/struct.SurfaceRef.html" title="struct sdl2::surface::SurfaceRef">SurfaceRef</a>&gt;<a href='#deref-methods' class='anchor'></a></h2><div class='impl-items'><h4 id='method.raw' class="method"><code id='raw.v'>pub fn <a href='#method.raw' class='fnname'>raw</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="struct" href="../../sdl2_sys/struct.SDL_Surface.html" title="struct sdl2_sys::SDL_Surface">SDL_Surface</a></code><a class='srclink' href='../../src/sdl2/surface.rs.html#284-286' title='goto source code'>[src]</a></h4><h4 id='method.width' class="method"><code id='width.v'>pub fn <a href='#method.width' class='fnname'>width</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../../src/sdl2/surface.rs.html#295-297' title='goto source code'>[src]</a></h4><h4 id='method.height' class="method"><code id='height.v'>pub fn <a href='#method.height' class='fnname'>height</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../../src/sdl2/surface.rs.html#299-301' title='goto source code'>[src]</a></h4><h4 id='method.pitch' class="method"><code id='pitch.v'>pub fn <a href='#method.pitch' class='fnname'>pitch</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../../src/sdl2/surface.rs.html#303-305' title='goto source code'>[src]</a></h4><h4 id='method.size' class="method"><code id='size.v'>pub fn <a href='#method.size' class='fnname'>size</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../../src/sdl2/surface.rs.html#307-309' title='goto source code'>[src]</a></h4><h4 id='method.rect' class="method"><code id='rect.v'>pub fn <a href='#method.rect' class='fnname'>rect</a>(&amp;self) -&gt; <a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a></code><a class='srclink' href='../../src/sdl2/surface.rs.html#311-313' title='goto source code'>[src]</a></h4><h4 id='method.pixel_format' class="method"><code id='pixel_format.v'>pub fn <a href='#method.pixel_format' class='fnname'>pixel_format</a>(&amp;self) -&gt; <a class="struct" href="../../sdl2/pixels/struct.PixelFormat.html" title="struct sdl2::pixels::PixelFormat">PixelFormat</a></code><a class='srclink' href='../../src/sdl2/surface.rs.html#315-319' title='goto source code'>[src]</a></h4><h4 id='method.pixel_format_enum' class="method"><code id='pixel_format_enum.v'>pub fn <a href='#method.pixel_format_enum' class='fnname'>pixel_format_enum</a>(&amp;self) -&gt; <a class="enum" href="../../sdl2/pixels/enum.PixelFormatEnum.html" title="enum sdl2::pixels::PixelFormatEnum">PixelFormatEnum</a></code><a class='srclink' href='../../src/sdl2/surface.rs.html#321-323' title='goto source code'>[src]</a></h4><h4 id='method.with_lock' class="method"><code id='with_lock.v'>pub fn <a href='#method.with_lock' class='fnname'>with_lock</a>&lt;R, F:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><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.slice.html">]</a>) -&gt; R&gt;(&amp;self, f: F) -&gt; R</code><a class='srclink' href='../../src/sdl2/surface.rs.html#326-337' title='goto source code'>[src]</a></h4><div class='docblock'><p>Locks a surface so that the pixels can be directly accessed safely.</p>
</div><h4 id='method.with_lock_mut' class="method"><code id='with_lock_mut.v'>pub fn <a href='#method.with_lock_mut' class='fnname'>with_lock_mut</a>&lt;R, F:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;mut [</a><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.slice.html">]</a>) -&gt; R&gt;(&amp;mut self, f: F) -&gt; R</code><a class='srclink' href='../../src/sdl2/surface.rs.html#340-351' title='goto source code'>[src]</a></h4><div class='docblock'><p>Locks a surface so that the pixels can be directly accessed safely.</p>
</div><h4 id='method.without_lock' class="method"><code id='without_lock.v'>pub fn <a href='#method.without_lock' class='fnname'>without_lock</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><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.slice.html">]</a>&gt;</code><a class='srclink' href='../../src/sdl2/surface.rs.html#355-366' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the Surface's pixel buffer if the Surface doesn't require locking
(e.g. it's a software surface).</p>
</div><h4 id='method.without_lock_mut' class="method"><code id='without_lock_mut.v'>pub fn <a href='#method.without_lock_mut' class='fnname'>without_lock_mut</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;mut [</a><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.slice.html">]</a>&gt;</code><a class='srclink' href='../../src/sdl2/surface.rs.html#370-381' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns the Surface's pixel buffer if the Surface doesn't require locking
(e.g. it's a software surface).</p>
</div><h4 id='method.must_lock' class="method"><code id='must_lock.v'>pub fn <a href='#method.must_lock' class='fnname'>must_lock</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../../src/sdl2/surface.rs.html#384-387' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns true if the Surface needs to be locked before accessing the Surface pixels.</p>
</div><h4 id='method.save_bmp_rw' class="method"><code id='save_bmp_rw.v'>pub fn <a href='#method.save_bmp_rw' class='fnname'>save_bmp_rw</a>(&amp;self, rwops: &amp;mut <a class="struct" href="../../sdl2/rwops/struct.RWops.html" title="struct sdl2::rwops::RWops">RWops</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code><a class='srclink' href='../../src/sdl2/surface.rs.html#389-395' title='goto source code'>[src]</a></h4><h4 id='method.save_bmp' class="method"><code id='save_bmp.v'>pub fn <a href='#method.save_bmp' class='fnname'>save_bmp</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;&gt;(&amp;self, path: P) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code><a class='srclink' href='../../src/sdl2/surface.rs.html#397-400' title='goto source code'>[src]</a></h4><h4 id='method.set_palette' class="method"><code id='set_palette.v'>pub fn <a href='#method.set_palette' class='fnname'>set_palette</a>(&amp;mut self, palette: &amp;<a class="struct" href="../../sdl2/pixels/struct.Palette.html" title="struct sdl2::pixels::Palette">Palette</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code><a class='srclink' href='../../src/sdl2/surface.rs.html#402-409' title='goto source code'>[src]</a></h4><h4 id='method.enable_RLE' class="method"><code id='enable_RLE.v'>pub fn <a href='#method.enable_RLE' class='fnname'>enable_RLE</a>(&amp;mut self)</code><a class='srclink' href='../../src/sdl2/surface.rs.html#412-419' title='goto source code'>[src]</a></h4><h4 id='method.disable_RLE' class="method"><code id='disable_RLE.v'>pub fn <a href='#method.disable_RLE' class='fnname'>disable_RLE</a>(&amp;mut self)</code><a class='srclink' href='../../src/sdl2/surface.rs.html#422-429' title='goto source code'>[src]</a></h4><h4 id='method.set_color_key' class="method"><code id='set_color_key.v'>pub fn <a href='#method.set_color_key' class='fnname'>set_color_key</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;enable: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;color: <a class="struct" href="../../sdl2/pixels/struct.Color.html" title="struct sdl2::pixels::Color">Color</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code><a class='srclink' href='../../src/sdl2/surface.rs.html#431-441' title='goto source code'>[src]</a></h4><h4 id='method.color_key' class="method"><code id='color_key.v'>pub fn <a href='#method.color_key' class='fnname'>color_key</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../sdl2/pixels/struct.Color.html" title="struct sdl2::pixels::Color">Color</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code><a class='srclink' href='../../src/sdl2/surface.rs.html#444-458' title='goto source code'>[src]</a></h4><div class='docblock'><p>The function will fail if the surface doesn't have color key enabled.</p>
</div><h4 id='method.set_color_mod' class="method"><code id='set_color_mod.v'>pub fn <a href='#method.set_color_mod' class='fnname'>set_color_mod</a>(&amp;mut self, color: <a class="struct" href="../../sdl2/pixels/struct.Color.html" title="struct sdl2::pixels::Color">Color</a>)</code><a class='srclink' href='../../src/sdl2/surface.rs.html#460-468' title='goto source code'>[src]</a></h4><h4 id='method.color_mod' class="method"><code id='color_mod.v'>pub fn <a href='#method.color_mod' class='fnname'>color_mod</a>(&amp;self) -&gt; <a class="struct" href="../../sdl2/pixels/struct.Color.html" title="struct sdl2::pixels::Color">Color</a></code><a class='srclink' href='../../src/sdl2/surface.rs.html#470-487' title='goto source code'>[src]</a></h4><h4 id='method.fill_rect' class="method"><code id='fill_rect.v'>pub fn <a href='#method.fill_rect' class='fnname'>fill_rect</a>&lt;R&gt;(&amp;mut self, rect: R, color: <a class="struct" href="../../sdl2/pixels/struct.Color.html" title="struct sdl2::pixels::Color">Color</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;&gt;,&nbsp;</span></code><a class='srclink' href='../../src/sdl2/surface.rs.html#489-503' title='goto source code'>[src]</a></h4><h4 id='method.fill_rects' class="method"><code id='fill_rects.v'>pub fn <a href='#method.fill_rects' class='fnname'>fill_rects</a>(&amp;mut self, rects: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>, color: <a class="struct" href="../../sdl2/pixels/struct.Color.html" title="struct sdl2::pixels::Color">Color</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code><a class='srclink' href='../../src/sdl2/surface.rs.html#506-516' title='goto source code'>[src]</a></h4><h4 id='method.set_alpha_mod' class="method"><code id='set_alpha_mod.v'>pub fn <a href='#method.set_alpha_mod' class='fnname'>set_alpha_mod</a>(&amp;mut self, alpha: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>)</code><a class='srclink' href='../../src/sdl2/surface.rs.html#518-527' title='goto source code'>[src]</a></h4><h4 id='method.alpha_mod' class="method"><code id='alpha_mod.v'>pub fn <a href='#method.alpha_mod' class='fnname'>alpha_mod</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code><a class='srclink' href='../../src/sdl2/surface.rs.html#529-540' title='goto source code'>[src]</a></h4><h4 id='method.set_blend_mode' class="method"><code id='set_blend_mode.v'>pub fn <a href='#method.set_blend_mode' class='fnname'>set_blend_mode</a>(&amp;mut self, mode: <a class="enum" href="../../sdl2/render/enum.BlendMode.html" title="enum sdl2::render::BlendMode">BlendMode</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code><a class='srclink' href='../../src/sdl2/surface.rs.html#543-552' title='goto source code'>[src]</a></h4><div class='docblock'><p>The function will fail if the blend mode is not supported by SDL.</p>
</div><h4 id='method.blend_mode' class="method"><code id='blend_mode.v'>pub fn <a href='#method.blend_mode' class='fnname'>blend_mode</a>(&amp;self) -&gt; <a class="enum" href="../../sdl2/render/enum.BlendMode.html" title="enum sdl2::render::BlendMode">BlendMode</a></code><a class='srclink' href='../../src/sdl2/surface.rs.html#554-565' title='goto source code'>[src]</a></h4><h4 id='method.set_clip_rect' class="method"><code id='set_clip_rect.v'>pub fn <a href='#method.set_clip_rect' class='fnname'>set_clip_rect</a>&lt;R&gt;(&amp;mut self, rect: R) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;&gt;,&nbsp;</span></code><a class='srclink' href='../../src/sdl2/surface.rs.html#570-580' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the clip rectangle for the surface.</p>
<p>If the rectangle is <code>None</code>, clipping will be disabled.</p>
</div><h4 id='method.clip_rect' class="method"><code id='clip_rect.v'>pub fn <a href='#method.clip_rect' class='fnname'>clip_rect</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;</code><a class='srclink' href='../../src/sdl2/surface.rs.html#585-597' title='goto source code'>[src]</a></h4><div class='docblock'><p>Gets the clip rectangle for the surface.</p>
<p>Returns <code>None</code> if clipping is disabled.</p>
</div><h4 id='method.convert' class="method"><code id='convert.v'>pub fn <a href='#method.convert' class='fnname'>convert</a>(&amp;self, format: &amp;<a class="struct" href="../../sdl2/pixels/struct.PixelFormat.html" title="struct sdl2::pixels::PixelFormat">PixelFormat</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../sdl2/surface/struct.Surface.html" title="struct sdl2::surface::Surface">Surface</a>&lt;'static&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code><a class='srclink' href='../../src/sdl2/surface.rs.html#600-609' title='goto source code'>[src]</a></h4><div class='docblock'><p>Copies the surface into a new one that is optimized for blitting to a surface of a specified pixel format.</p>
</div><h4 id='method.convert_format' class="method"><code id='convert_format.v'>pub fn <a href='#method.convert_format' class='fnname'>convert_format</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;format: <a class="enum" href="../../sdl2/pixels/enum.PixelFormatEnum.html" title="enum sdl2::pixels::PixelFormatEnum">PixelFormatEnum</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../sdl2/surface/struct.Surface.html" title="struct sdl2::surface::Surface">Surface</a>&lt;'static&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</code><a class='srclink' href='../../src/sdl2/surface.rs.html#612-621' title='goto source code'>[src]</a></h4><div class='docblock'><p>Copies the surface into a new one of a specified pixel format.</p>
</div><h4 id='method.blit' class="method"><code id='blit.v'>pub fn <a href='#method.blit' class='fnname'>blit</a>&lt;R1, R2&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;src_rect: R1, <br>&nbsp;&nbsp;&nbsp;&nbsp;dst: &amp;mut <a class="struct" href="../../sdl2/surface/struct.SurfaceRef.html" title="struct sdl2::surface::SurfaceRef">SurfaceRef</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dst_rect: R2<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R1: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;R2: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;&gt;,&nbsp;</span></code><a class='srclink' href='../../src/sdl2/surface.rs.html#626-653' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs surface blitting (surface copying).</p>
<p>Returns the final blit rectangle, if a <code>dst_rect</code> was provided.</p>
</div><h4 id='method.lower_blit' class="method"><code id='lower_blit.v'>pub unsafe fn <a href='#method.lower_blit' class='fnname'>lower_blit</a>&lt;R1, R2&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;src_rect: R1, <br>&nbsp;&nbsp;&nbsp;&nbsp;dst: &amp;mut <a class="struct" href="../../sdl2/surface/struct.SurfaceRef.html" title="struct sdl2::surface::SurfaceRef">SurfaceRef</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dst_rect: R2<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R1: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;R2: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;&gt;,&nbsp;</span></code><a class='srclink' href='../../src/sdl2/surface.rs.html#659-678' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs low-level surface blitting.</p>
<p>Unless you know what you're doing, use <code>blit()</code> instead, which will clip the input rectangles.
This function could crash if the rectangles aren't pre-clipped to the surface, and is therefore unsafe.</p>
</div><h4 id='method.blit_scaled' class="method"><code id='blit_scaled.v'>pub fn <a href='#method.blit_scaled' class='fnname'>blit_scaled</a>&lt;R1, R2&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;src_rect: R1, <br>&nbsp;&nbsp;&nbsp;&nbsp;dst: &amp;mut <a class="struct" href="../../sdl2/surface/struct.SurfaceRef.html" title="struct sdl2::surface::SurfaceRef">SurfaceRef</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dst_rect: R2<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R1: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;R2: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;&gt;,&nbsp;</span></code><a class='srclink' href='../../src/sdl2/surface.rs.html#683-704' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs scaled surface bliting (surface copying).</p>
<p>Returns the final blit rectangle, if a <code>dst_rect</code> was provided.</p>
</div><h4 id='method.lower_blit_scaled' class="method"><code id='lower_blit_scaled.v'>pub unsafe fn <a href='#method.lower_blit_scaled' class='fnname'>lower_blit_scaled</a>&lt;R1, R2&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;src_rect: R1, <br>&nbsp;&nbsp;&nbsp;&nbsp;dst: &amp;mut <a class="struct" href="../../sdl2/surface/struct.SurfaceRef.html" title="struct sdl2::surface::SurfaceRef">SurfaceRef</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;dst_rect: R2<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<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/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R1: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;R2: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../sdl2/rect/struct.Rect.html" title="struct sdl2::rect::Rect">Rect</a>&gt;&gt;,&nbsp;</span></code><a class='srclink' href='../../src/sdl2/surface.rs.html#710-727' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs low-level scaled surface blitting.</p>
<p>Unless you know what you're doing, use <code>blit_scaled()</code> instead, which will clip the input rectangles.
This function could crash if the rectangles aren't pre-clipped to the surface, and is therefore unsafe.</p>
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-Deref' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="../../sdl2/video/struct.WindowSurfaceRef.html" title="struct sdl2::video::WindowSurfaceRef">WindowSurfaceRef</a>&lt;'a&gt;</code><a href='#impl-Deref' class='anchor'></a><a class='srclink' href='../../src/sdl2/video.rs.html#26-33' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Target' class="type"><code id='Target.t'>type <a href='https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target' class="type">Target</a> = <a class="struct" href="../../sdl2/surface/struct.SurfaceRef.html" title="struct sdl2::surface::SurfaceRef">SurfaceRef</a></code></h4><div class='docblock'><p>The resulting type after dereferencing.</p>
</div><h4 id='method.deref' class="method hidden"><code id='deref.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#tymethod.deref' class='fnname'>deref</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../sdl2/surface/struct.SurfaceRef.html" title="struct sdl2::surface::SurfaceRef">SurfaceRef</a></code><a class='srclink' href='../../src/sdl2/video.rs.html#30-32' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Dereferences the value.</p>
</div></div><h3 id='impl-DerefMut' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a> for <a class="struct" href="../../sdl2/video/struct.WindowSurfaceRef.html" title="struct sdl2::video::WindowSurfaceRef">WindowSurfaceRef</a>&lt;'a&gt;</code><a href='#impl-DerefMut' class='anchor'></a><a class='srclink' href='../../src/sdl2/video.rs.html#35-40' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.deref_mut' class="method hidden"><code id='deref_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html#tymethod.deref_mut' class='fnname'>deref_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="../../sdl2/surface/struct.SurfaceRef.html" title="struct sdl2::surface::SurfaceRef">SurfaceRef</a></code><a class='srclink' href='../../src/sdl2/video.rs.html#37-39' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably dereferences the value.</p>
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl&lt;'a&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../sdl2/video/struct.WindowSurfaceRef.html" title="struct sdl2::video::WindowSurfaceRef">WindowSurfaceRef</a>&lt;'a&gt;</code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl&lt;'a&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../sdl2/video/struct.WindowSurfaceRef.html" title="struct sdl2::video::WindowSurfaceRef">WindowSurfaceRef</a>&lt;'a&gt;</code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl&lt;'a&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../sdl2/video/struct.WindowSurfaceRef.html" title="struct sdl2::video::WindowSurfaceRef">WindowSurfaceRef</a>&lt;'a&gt;</code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../sdl2/video/struct.WindowSurfaceRef.html" title="struct sdl2::video::WindowSurfaceRef">WindowSurfaceRef</a>&lt;'a&gt;</code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl&lt;'a&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../sdl2/video/struct.WindowSurfaceRef.html" title="struct sdl2::video::WindowSurfaceRef">WindowSurfaceRef</a>&lt;'a&gt;</code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-569' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -&gt; T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#566-568' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#554-561' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -&gt; U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#558-560' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#602-611' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#608-610' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588-597' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#594-596' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "sdl2";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>