mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-30 16:12:16 +00:00
421 lines
254 KiB
HTML
421 lines
254 KiB
HTML
![]() |
<!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 `CanvasRenderingContext2d` struct in crate `web_sys`."><meta name="keywords" content="rust, rustlang, rust-lang, CanvasRenderingContext2d"><title>web_sys::CanvasRenderingContext2d - 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">☰</div><a href='../web_sys/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct CanvasRenderingContext2d</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.add_hit_region">add_hit_region</a><a href="#method.add_hit_region_with_options">add_hit_region_with_options</a><a href="#method.arc">arc</a><a href="#method.arc_to">arc_to</a><a href="#method.arc_with_anticlockwise">arc_with_anticlockwise</a><a href="#method.begin_path">begin_path</a><a href="#method.bezier_curve_to">bezier_curve_to</a><a href="#method.canvas">canvas</a><a href="#method.clear_hit_regions">clear_hit_regions</a><a href="#method.clear_rect">clear_rect</a><a href="#method.clip">clip</a><a href="#method.clip_with_canvas_winding_rule">clip_with_canvas_winding_rule</a><a href="#method.clip_with_path_2d">clip_with_path_2d</a><a href="#method.clip_with_path_2d_and_winding">clip_with_path_2d_and_winding</a><a href="#method.close_path">close_path</a><a href="#method.create_image_data_with_imagedata">create_image_data_with_imagedata</a><a href="#method.create_image_data_with_sw_and_sh">create_image_data_with_sw_and_sh</a><a href="#method.create_linear_gradient">create_linear_gradient</a><a href="#method.create_pattern_with_html_canvas_element">create_pattern_with_html_canvas_element</a><a href="#method.create_pattern_with_html_image_element">create_pattern_with_html_image_element</a><a href="#method.create_pattern_with_html_video_element">create_pattern_with_html_video_element</a><a href="#method.create_pattern_with_image_bitmap">create_pattern_with_image_bitmap</a><a href="#method.create_pattern_with_svg_image_element">create_pattern_with_svg_image_element</a><a href="#method.create_radial_gradient">create_radial_gradient</a><a href="#method.draw_custom_focus_ring">draw_custom_focus_ring</a><a href="#method.draw_focus_if_needed">draw_focus_if_needed</a><a href="#method.draw_image_with_html_canvas_element">draw_image_with_html_canvas_element</a><a href="#method.draw_image_with_html_canvas_element_and_dw_and_dh">draw_image_with_html_canvas_element_and_dw_and_dh</a><a href="#method.draw_image_with_html_canvas_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh">draw_image_with_html_canvas_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh</a><a href="#method.draw_image_with_html_image_element">draw_image_with_html_image_element</a><a href="#method.draw_image_with_html_image_element_and_dw_and_dh">draw_image_with_html_image_element_and_dw_and_dh</a><a href="#method.draw_image_with_html_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh">draw_image_with_html_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh</a><a href="#method.draw_image_with_html_video_element">draw_image_with_html_video_element</a><a href="#method.draw_image_with_html_video_elem
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div><h2 id='implementations' class='small-section-header'>Implementations<a href='#implementations' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.canvas' class="method"><code id='canvas.v'>pub fn <a href='#method.canvas' class='fnname'>canvas</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="../web_sys/struct.HtmlCanvasElement.html" title="struct web_sys::HtmlCanvasElement">HtmlCanvasElement</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>canvas</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/canvas">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>HtmlCanvasElement</code></em></p>
|
||
|
</div></div><h3 id='impl-1' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-1' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.global_alpha' class="method"><code id='global_alpha.v'>pub fn <a href='#method.global_alpha' class='fnname'>global_alpha</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>globalAlpha</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalAlpha">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-2' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-2' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_global_alpha' class="method"><code id='set_global_alpha.v'>pub fn <a href='#method.set_global_alpha' class='fnname'>set_global_alpha</a>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>globalAlpha</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalAlpha">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-3' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-3' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.global_composite_operation' class="method"><code id='global_composite_operation.v'>pub fn <a href='#method.global_composite_operation' class='fnname'>global_composite_operation</a>(&self) -> <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="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>globalCompositeOperation</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-4' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-4' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_global_composite_operation' class="method"><code id='set_global_composite_operation.v'>pub fn <a href='#method.set_global_composite_operation' class='fnname'>set_global_composite_operation</a>(&self, value: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</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="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>globalCompositeOperation</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-5' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-5' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.stroke_style' class="method"><code id='stroke_style.v'>pub fn <a href='#method.stroke_style' class='fnname'>stroke_style</a>(&self) -> <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>strokeStyle</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeStyle">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-6' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-6' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_stroke_style' class="method"><code id='set_stroke_style.v'>pub fn <a href='#method.set_stroke_style' class='fnname'>set_stroke_style</a>(&self, value: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>strokeStyle</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeStyle">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-7' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-7' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fill_style' class="method"><code id='fill_style.v'>pub fn <a href='#method.fill_style' class='fnname'>fill_style</a>(&self) -> <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>fillStyle</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillStyle">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-8' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-8' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_fill_style' class="method"><code id='set_fill_style.v'>pub fn <a href='#method.set_fill_style' class='fnname'>set_fill_style</a>(&self, value: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>fillStyle</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillStyle">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-9' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-9' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.filter' class="method"><code id='filter.v'>pub fn <a href='#method.filter' class='fnname'>filter</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/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>filter</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-10' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-10' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_filter' class="method"><code id='set_filter.v'>pub fn <a href='#method.set_filter' class='fnname'>set_filter</a>(&self, value: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>filter</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-11' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-11' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.image_smoothing_enabled' class="method"><code id='image_smoothing_enabled.v'>pub fn <a href='#method.image_smoothing_enabled' class='fnname'>image_smoothing_enabled</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>imageSmoothingEnabled</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-12' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-12' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_image_smoothing_enabled' class="method"><code id='set_image_smoothing_enabled.v'>pub fn <a href='#method.set_image_smoothing_enabled' class='fnname'>set_image_smoothing_enabled</a>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>imageSmoothingEnabled</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-13' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-13' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.line_width' class="method"><code id='line_width.v'>pub fn <a href='#method.line_width' class='fnname'>line_width</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>lineWidth</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineWidth">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-14' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-14' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_line_width' class="method"><code id='set_line_width.v'>pub fn <a href='#method.set_line_width' class='fnname'>set_line_width</a>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>lineWidth</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineWidth">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-15' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-15' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.line_cap' class="method"><code id='line_cap.v'>pub fn <a href='#method.line_cap' class='fnname'>line_cap</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/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>lineCap</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-16' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-16' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_line_cap' class="method"><code id='set_line_cap.v'>pub fn <a href='#method.set_line_cap' class='fnname'>set_line_cap</a>(&self, value: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>lineCap</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-17' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-17' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.line_join' class="method"><code id='line_join.v'>pub fn <a href='#method.line_join' class='fnname'>line_join</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/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>lineJoin</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-18' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-18' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_line_join' class="method"><code id='set_line_join.v'>pub fn <a href='#method.set_line_join' class='fnname'>set_line_join</a>(&self, value: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>lineJoin</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-19' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-19' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.miter_limit' class="method"><code id='miter_limit.v'>pub fn <a href='#method.miter_limit' class='fnname'>miter_limit</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>miterLimit</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/miterLimit">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-20' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-20' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_miter_limit' class="method"><code id='set_miter_limit.v'>pub fn <a href='#method.set_miter_limit' class='fnname'>set_miter_limit</a>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>miterLimit</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/miterLimit">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-21' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-21' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.line_dash_offset' class="method"><code id='line_dash_offset.v'>pub fn <a href='#method.line_dash_offset' class='fnname'>line_dash_offset</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>lineDashOffset</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-22' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-22' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_line_dash_offset' class="method"><code id='set_line_dash_offset.v'>pub fn <a href='#method.set_line_dash_offset' class='fnname'>set_line_dash_offset</a>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>lineDashOffset</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-23' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-23' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.shadow_offset_x' class="method"><code id='shadow_offset_x.v'>pub fn <a href='#method.shadow_offset_x' class='fnname'>shadow_offset_x</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>shadowOffsetX</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-24' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-24' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_shadow_offset_x' class="method"><code id='set_shadow_offset_x.v'>pub fn <a href='#method.set_shadow_offset_x' class='fnname'>set_shadow_offset_x</a>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>shadowOffsetX</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-25' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-25' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.shadow_offset_y' class="method"><code id='shadow_offset_y.v'>pub fn <a href='#method.shadow_offset_y' class='fnname'>shadow_offset_y</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>shadowOffsetY</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-26' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-26' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_shadow_offset_y' class="method"><code id='set_shadow_offset_y.v'>pub fn <a href='#method.set_shadow_offset_y' class='fnname'>set_shadow_offset_y</a>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>shadowOffsetY</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-27' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-27' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.shadow_blur' class="method"><code id='shadow_blur.v'>pub fn <a href='#method.shadow_blur' class='fnname'>shadow_blur</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>shadowBlur</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowBlur">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-28' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-28' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_shadow_blur' class="method"><code id='set_shadow_blur.v'>pub fn <a href='#method.set_shadow_blur' class='fnname'>set_shadow_blur</a>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>shadowBlur</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowBlur">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-29' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-29' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.shadow_color' class="method"><code id='shadow_color.v'>pub fn <a href='#method.shadow_color' class='fnname'>shadow_color</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/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>shadowColor</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowColor">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-30' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-30' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_shadow_color' class="method"><code id='set_shadow_color.v'>pub fn <a href='#method.set_shadow_color' class='fnname'>set_shadow_color</a>(&self, value: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>shadowColor</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowColor">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-31' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-31' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.font' class="method"><code id='font.v'>pub fn <a href='#method.font' class='fnname'>font</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/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>font</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-32' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-32' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_font' class="method"><code id='set_font.v'>pub fn <a href='#method.set_font' class='fnname'>set_font</a>(&self, value: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>font</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-33' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-33' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.text_align' class="method"><code id='text_align.v'>pub fn <a href='#method.text_align' class='fnname'>text_align</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/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>textAlign</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textAlign">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-34' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-34' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_text_align' class="method"><code id='set_text_align.v'>pub fn <a href='#method.set_text_align' class='fnname'>set_text_align</a>(&self, value: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>textAlign</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textAlign">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-35' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-35' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.text_baseline' class="method"><code id='text_baseline.v'>pub fn <a href='#method.text_baseline' class='fnname'>text_baseline</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/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Getter for the <code>textBaseline</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-36' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-36' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_text_baseline' class="method"><code id='set_text_baseline.v'>pub fn <a href='#method.set_text_baseline' class='fnname'>set_text_baseline</a>(&self, value: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>Setter for the <code>textBaseline</code> field of this object.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-37' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-37' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_window' class="method"><code id='draw_window.v'>pub fn <a href='#method.draw_window' class='fnname'>draw_window</a>(<br> &self, <br> window: &<a class="struct" href="../web_sys/struct.Window.html" title="struct web_sys::Window">Window</a>, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> bg_color: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawWindow()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawWindow">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>Window</code></em></p>
|
||
|
</div></div><h3 id='impl-38' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-38' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_window_with_flags' class="method"><code id='draw_window_with_flags.v'>pub fn <a href='#method.draw_window_with_flags' class='fnname'>draw_window_with_flags</a>(<br> &self, <br> window: &<a class="struct" href="../web_sys/struct.Window.html" title="struct web_sys::Window">Window</a>, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> bg_color: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> flags: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawWindow()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawWindow">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>Window</code></em></p>
|
||
|
</div></div><h3 id='impl-39' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-39' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_html_image_element' class="method"><code id='draw_image_with_html_image_element.v'>pub fn <a href='#method.draw_image_with_html_image_element' class='fnname'>draw_image_with_html_image_element</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.HtmlImageElement.html" title="struct web_sys::HtmlImageElement">HtmlImageElement</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>HtmlImageElement</code></em></p>
|
||
|
</div></div><h3 id='impl-40' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-40' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_svg_image_element' class="method"><code id='draw_image_with_svg_image_element.v'>pub fn <a href='#method.draw_image_with_svg_image_element' class='fnname'>draw_image_with_svg_image_element</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.SvgImageElement.html" title="struct web_sys::SvgImageElement">SvgImageElement</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>SvgImageElement</code></em></p>
|
||
|
</div></div><h3 id='impl-41' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-41' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_html_canvas_element' class="method"><code id='draw_image_with_html_canvas_element.v'>pub fn <a href='#method.draw_image_with_html_canvas_element' class='fnname'>draw_image_with_html_canvas_element</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.HtmlCanvasElement.html" title="struct web_sys::HtmlCanvasElement">HtmlCanvasElement</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>HtmlCanvasElement</code></em></p>
|
||
|
</div></div><h3 id='impl-42' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-42' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_html_video_element' class="method"><code id='draw_image_with_html_video_element.v'>pub fn <a href='#method.draw_image_with_html_video_element' class='fnname'>draw_image_with_html_video_element</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.HtmlVideoElement.html" title="struct web_sys::HtmlVideoElement">HtmlVideoElement</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>HtmlVideoElement</code></em></p>
|
||
|
</div></div><h3 id='impl-43' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-43' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_image_bitmap' class="method"><code id='draw_image_with_image_bitmap.v'>pub fn <a href='#method.draw_image_with_image_bitmap' class='fnname'>draw_image_with_image_bitmap</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.ImageBitmap.html" title="struct web_sys::ImageBitmap">ImageBitmap</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>ImageBitmap</code></em></p>
|
||
|
</div></div><h3 id='impl-44' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-44' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_html_image_element_and_dw_and_dh' class="method"><code id='draw_image_with_html_image_element_and_dw_and_dh.v'>pub fn <a href='#method.draw_image_with_html_image_element_and_dw_and_dh' class='fnname'>draw_image_with_html_image_element_and_dw_and_dh</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.HtmlImageElement.html" title="struct web_sys::HtmlImageElement">HtmlImageElement</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>HtmlImageElement</code></em></p>
|
||
|
</div></div><h3 id='impl-45' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-45' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_svg_image_element_and_dw_and_dh' class="method"><code id='draw_image_with_svg_image_element_and_dw_and_dh.v'>pub fn <a href='#method.draw_image_with_svg_image_element_and_dw_and_dh' class='fnname'>draw_image_with_svg_image_element_and_dw_and_dh</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.SvgImageElement.html" title="struct web_sys::SvgImageElement">SvgImageElement</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>SvgImageElement</code></em></p>
|
||
|
</div></div><h3 id='impl-46' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-46' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_html_canvas_element_and_dw_and_dh' class="method"><code id='draw_image_with_html_canvas_element_and_dw_and_dh.v'>pub fn <a href='#method.draw_image_with_html_canvas_element_and_dw_and_dh' class='fnname'>draw_image_with_html_canvas_element_and_dw_and_dh</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.HtmlCanvasElement.html" title="struct web_sys::HtmlCanvasElement">HtmlCanvasElement</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>HtmlCanvasElement</code></em></p>
|
||
|
</div></div><h3 id='impl-47' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-47' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_html_video_element_and_dw_and_dh' class="method"><code id='draw_image_with_html_video_element_and_dw_and_dh.v'>pub fn <a href='#method.draw_image_with_html_video_element_and_dw_and_dh' class='fnname'>draw_image_with_html_video_element_and_dw_and_dh</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.HtmlVideoElement.html" title="struct web_sys::HtmlVideoElement">HtmlVideoElement</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>HtmlVideoElement</code></em></p>
|
||
|
</div></div><h3 id='impl-48' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-48' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_image_bitmap_and_dw_and_dh' class="method"><code id='draw_image_with_image_bitmap_and_dw_and_dh.v'>pub fn <a href='#method.draw_image_with_image_bitmap_and_dw_and_dh' class='fnname'>draw_image_with_image_bitmap_and_dw_and_dh</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.ImageBitmap.html" title="struct web_sys::ImageBitmap">ImageBitmap</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>ImageBitmap</code></em></p>
|
||
|
</div></div><h3 id='impl-49' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-49' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_html_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh' class="method"><code id='draw_image_with_html_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh.v'>pub fn <a href='#method.draw_image_with_html_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh' class='fnname'>draw_image_with_html_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.HtmlImageElement.html" title="struct web_sys::HtmlImageElement">HtmlImageElement</a>, <br> sx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>HtmlImageElement</code></em></p>
|
||
|
</div></div><h3 id='impl-50' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-50' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_svg_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh' class="method"><code id='draw_image_with_svg_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh.v'>pub fn <a href='#method.draw_image_with_svg_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh' class='fnname'>draw_image_with_svg_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.SvgImageElement.html" title="struct web_sys::SvgImageElement">SvgImageElement</a>, <br> sx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>SvgImageElement</code></em></p>
|
||
|
</div></div><h3 id='impl-51' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-51' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_html_canvas_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh' class="method"><code id='draw_image_with_html_canvas_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh.v'>pub fn <a href='#method.draw_image_with_html_canvas_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh' class='fnname'>draw_image_with_html_canvas_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.HtmlCanvasElement.html" title="struct web_sys::HtmlCanvasElement">HtmlCanvasElement</a>, <br> sx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>HtmlCanvasElement</code></em></p>
|
||
|
</div></div><h3 id='impl-52' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-52' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_html_video_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh' class="method"><code id='draw_image_with_html_video_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh.v'>pub fn <a href='#method.draw_image_with_html_video_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh' class='fnname'>draw_image_with_html_video_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.HtmlVideoElement.html" title="struct web_sys::HtmlVideoElement">HtmlVideoElement</a>, <br> sx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>HtmlVideoElement</code></em></p>
|
||
|
</div></div><h3 id='impl-53' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-53' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_image_with_image_bitmap_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh' class="method"><code id='draw_image_with_image_bitmap_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh.v'>pub fn <a href='#method.draw_image_with_image_bitmap_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh' class='fnname'>draw_image_with_image_bitmap_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.ImageBitmap.html" title="struct web_sys::ImageBitmap">ImageBitmap</a>, <br> sx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawImage()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>ImageBitmap</code></em></p>
|
||
|
</div></div><h3 id='impl-54' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-54' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.begin_path' class="method"><code id='begin_path.v'>pub fn <a href='#method.begin_path' class='fnname'>begin_path</a>(&self)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>beginPath()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/beginPath">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-55' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-55' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clip' class="method"><code id='clip.v'>pub fn <a href='#method.clip' class='fnname'>clip</a>(&self)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>clip()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-56' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-56' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clip_with_canvas_winding_rule' class="method"><code id='clip_with_canvas_winding_rule.v'>pub fn <a href='#method.clip_with_canvas_winding_rule' class='fnname'>clip_with_canvas_winding_rule</a>(&self, winding: <a class="enum" href="../web_sys/enum.CanvasWindingRule.html" title="enum web_sys::CanvasWindingRule">CanvasWindingRule</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>clip()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>CanvasWindingRule</code></em></p>
|
||
|
</div></div><h3 id='impl-57' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-57' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clip_with_path_2d' class="method"><code id='clip_with_path_2d.v'>pub fn <a href='#method.clip_with_path_2d' class='fnname'>clip_with_path_2d</a>(&self, path: &<a class="struct" href="../web_sys/struct.Path2d.html" title="struct web_sys::Path2d">Path2d</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>clip()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>Path2d</code></em></p>
|
||
|
</div></div><h3 id='impl-58' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-58' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clip_with_path_2d_and_winding' class="method"><code id='clip_with_path_2d_and_winding.v'>pub fn <a href='#method.clip_with_path_2d_and_winding' class='fnname'>clip_with_path_2d_and_winding</a>(<br> &self, <br> path: &<a class="struct" href="../web_sys/struct.Path2d.html" title="struct web_sys::Path2d">Path2d</a>, <br> winding: <a class="enum" href="../web_sys/enum.CanvasWindingRule.html" title="enum web_sys::CanvasWindingRule">CanvasWindingRule</a><br>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>clip()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>CanvasWindingRule</code>, <code>Path2d</code></em></p>
|
||
|
</div></div><h3 id='impl-59' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-59' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fill' class="method"><code id='fill.v'>pub fn <a href='#method.fill' class='fnname'>fill</a>(&self)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>fill()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-60' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-60' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fill_with_canvas_winding_rule' class="method"><code id='fill_with_canvas_winding_rule.v'>pub fn <a href='#method.fill_with_canvas_winding_rule' class='fnname'>fill_with_canvas_winding_rule</a>(&self, winding: <a class="enum" href="../web_sys/enum.CanvasWindingRule.html" title="enum web_sys::CanvasWindingRule">CanvasWindingRule</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>fill()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>CanvasWindingRule</code></em></p>
|
||
|
</div></div><h3 id='impl-61' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-61' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fill_with_path_2d' class="method"><code id='fill_with_path_2d.v'>pub fn <a href='#method.fill_with_path_2d' class='fnname'>fill_with_path_2d</a>(&self, path: &<a class="struct" href="../web_sys/struct.Path2d.html" title="struct web_sys::Path2d">Path2d</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>fill()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>Path2d</code></em></p>
|
||
|
</div></div><h3 id='impl-62' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-62' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fill_with_path_2d_and_winding' class="method"><code id='fill_with_path_2d_and_winding.v'>pub fn <a href='#method.fill_with_path_2d_and_winding' class='fnname'>fill_with_path_2d_and_winding</a>(<br> &self, <br> path: &<a class="struct" href="../web_sys/struct.Path2d.html" title="struct web_sys::Path2d">Path2d</a>, <br> winding: <a class="enum" href="../web_sys/enum.CanvasWindingRule.html" title="enum web_sys::CanvasWindingRule">CanvasWindingRule</a><br>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>fill()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>CanvasWindingRule</code>, <code>Path2d</code></em></p>
|
||
|
</div></div><h3 id='impl-63' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-63' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.is_point_in_path_with_f64' class="method"><code id='is_point_in_path_with_f64.v'>pub fn <a href='#method.is_point_in_path_with_f64' class='fnname'>is_point_in_path_with_f64</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>isPointInPath()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-64' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-64' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.is_point_in_path_with_f64_and_canvas_winding_rule' class="method"><code id='is_point_in_path_with_f64_and_canvas_winding_rule.v'>pub fn <a href='#method.is_point_in_path_with_f64_and_canvas_winding_rule' class='fnname'>is_point_in_path_with_f64_and_canvas_winding_rule</a>(<br> &self, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> winding: <a class="enum" href="../web_sys/enum.CanvasWindingRule.html" title="enum web_sys::CanvasWindingRule">CanvasWindingRule</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>isPointInPath()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>CanvasWindingRule</code></em></p>
|
||
|
</div></div><h3 id='impl-65' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-65' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.is_point_in_path_with_path_2d_and_f64' class="method"><code id='is_point_in_path_with_path_2d_and_f64.v'>pub fn <a href='#method.is_point_in_path_with_path_2d_and_f64' class='fnname'>is_point_in_path_with_path_2d_and_f64</a>(<br> &self, <br> path: &<a class="struct" href="../web_sys/struct.Path2d.html" title="struct web_sys::Path2d">Path2d</a>, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>isPointInPath()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>Path2d</code></em></p>
|
||
|
</div></div><h3 id='impl-66' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-66' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.is_point_in_path_with_path_2d_and_f64_and_winding' class="method"><code id='is_point_in_path_with_path_2d_and_f64_and_winding.v'>pub fn <a href='#method.is_point_in_path_with_path_2d_and_f64_and_winding' class='fnname'>is_point_in_path_with_path_2d_and_f64_and_winding</a>(<br> &self, <br> path: &<a class="struct" href="../web_sys/struct.Path2d.html" title="struct web_sys::Path2d">Path2d</a>, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> winding: <a class="enum" href="../web_sys/enum.CanvasWindingRule.html" title="enum web_sys::CanvasWindingRule">CanvasWindingRule</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>isPointInPath()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>CanvasWindingRule</code>, <code>Path2d</code></em></p>
|
||
|
</div></div><h3 id='impl-67' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-67' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.is_point_in_stroke_with_x_and_y' class="method"><code id='is_point_in_stroke_with_x_and_y.v'>pub fn <a href='#method.is_point_in_stroke_with_x_and_y' class='fnname'>is_point_in_stroke_with_x_and_y</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>isPointInStroke()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInStroke">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-68' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-68' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.is_point_in_stroke_with_path_and_x_and_y' class="method"><code id='is_point_in_stroke_with_path_and_x_and_y.v'>pub fn <a href='#method.is_point_in_stroke_with_path_and_x_and_y' class='fnname'>is_point_in_stroke_with_path_and_x_and_y</a>(<br> &self, <br> path: &<a class="struct" href="../web_sys/struct.Path2d.html" title="struct web_sys::Path2d">Path2d</a>, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>isPointInStroke()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInStroke">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>Path2d</code></em></p>
|
||
|
</div></div><h3 id='impl-69' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-69' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.stroke' class="method"><code id='stroke.v'>pub fn <a href='#method.stroke' class='fnname'>stroke</a>(&self)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>stroke()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/stroke">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-70' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-70' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.stroke_with_path' class="method"><code id='stroke_with_path.v'>pub fn <a href='#method.stroke_with_path' class='fnname'>stroke_with_path</a>(&self, path: &<a class="struct" href="../web_sys/struct.Path2d.html" title="struct web_sys::Path2d">Path2d</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>stroke()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/stroke">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>Path2d</code></em></p>
|
||
|
</div></div><h3 id='impl-71' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-71' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.create_linear_gradient' class="method"><code id='create_linear_gradient.v'>pub fn <a href='#method.create_linear_gradient' class='fnname'>create_linear_gradient</a>(<br> &self, <br> x0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> x1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><br>) -> <a class="struct" href="../web_sys/struct.CanvasGradient.html" title="struct web_sys::CanvasGradient">CanvasGradient</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>createLinearGradient()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createLinearGradient">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasGradient</code>, <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-72' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-72' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.create_pattern_with_html_image_element' class="method"><code id='create_pattern_with_html_image_element.v'>pub fn <a href='#method.create_pattern_with_html_image_element' class='fnname'>create_pattern_with_html_image_element</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.HtmlImageElement.html" title="struct web_sys::HtmlImageElement">HtmlImageElement</a>, <br> repetition: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../web_sys/struct.CanvasPattern.html" title="struct web_sys::CanvasPattern">CanvasPattern</a>>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>createPattern()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasPattern</code>, <code>CanvasRenderingContext2d</code>, <code>HtmlImageElement</code></em></p>
|
||
|
</div></div><h3 id='impl-73' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-73' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.create_pattern_with_svg_image_element' class="method"><code id='create_pattern_with_svg_image_element.v'>pub fn <a href='#method.create_pattern_with_svg_image_element' class='fnname'>create_pattern_with_svg_image_element</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.SvgImageElement.html" title="struct web_sys::SvgImageElement">SvgImageElement</a>, <br> repetition: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../web_sys/struct.CanvasPattern.html" title="struct web_sys::CanvasPattern">CanvasPattern</a>>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>createPattern()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasPattern</code>, <code>CanvasRenderingContext2d</code>, <code>SvgImageElement</code></em></p>
|
||
|
</div></div><h3 id='impl-74' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-74' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.create_pattern_with_html_canvas_element' class="method"><code id='create_pattern_with_html_canvas_element.v'>pub fn <a href='#method.create_pattern_with_html_canvas_element' class='fnname'>create_pattern_with_html_canvas_element</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.HtmlCanvasElement.html" title="struct web_sys::HtmlCanvasElement">HtmlCanvasElement</a>, <br> repetition: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../web_sys/struct.CanvasPattern.html" title="struct web_sys::CanvasPattern">CanvasPattern</a>>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>createPattern()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasPattern</code>, <code>CanvasRenderingContext2d</code>, <code>HtmlCanvasElement</code></em></p>
|
||
|
</div></div><h3 id='impl-75' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-75' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.create_pattern_with_html_video_element' class="method"><code id='create_pattern_with_html_video_element.v'>pub fn <a href='#method.create_pattern_with_html_video_element' class='fnname'>create_pattern_with_html_video_element</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.HtmlVideoElement.html" title="struct web_sys::HtmlVideoElement">HtmlVideoElement</a>, <br> repetition: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../web_sys/struct.CanvasPattern.html" title="struct web_sys::CanvasPattern">CanvasPattern</a>>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>createPattern()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasPattern</code>, <code>CanvasRenderingContext2d</code>, <code>HtmlVideoElement</code></em></p>
|
||
|
</div></div><h3 id='impl-76' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-76' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.create_pattern_with_image_bitmap' class="method"><code id='create_pattern_with_image_bitmap.v'>pub fn <a href='#method.create_pattern_with_image_bitmap' class='fnname'>create_pattern_with_image_bitmap</a>(<br> &self, <br> image: &<a class="struct" href="../web_sys/struct.ImageBitmap.html" title="struct web_sys::ImageBitmap">ImageBitmap</a>, <br> repetition: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../web_sys/struct.CanvasPattern.html" title="struct web_sys::CanvasPattern">CanvasPattern</a>>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>createPattern()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasPattern</code>, <code>CanvasRenderingContext2d</code>, <code>ImageBitmap</code></em></p>
|
||
|
</div></div><h3 id='impl-77' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-77' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.create_radial_gradient' class="method"><code id='create_radial_gradient.v'>pub fn <a href='#method.create_radial_gradient' class='fnname'>create_radial_gradient</a>(<br> &self, <br> x0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> r0: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> x1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> r1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="../web_sys/struct.CanvasGradient.html" title="struct web_sys::CanvasGradient">CanvasGradient</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>createRadialGradient()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createRadialGradient">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasGradient</code>, <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-78' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-78' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.add_hit_region' class="method"><code id='add_hit_region.v'>pub fn <a href='#method.add_hit_region' class='fnname'>add_hit_region</a>(&self) -> <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="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>addHitRegion()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/addHitRegion">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-79' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-79' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.add_hit_region_with_options' class="method"><code id='add_hit_region_with_options.v'>pub fn <a href='#method.add_hit_region_with_options' class='fnname'>add_hit_region_with_options</a>(<br> &self, <br> options: &<a class="struct" href="../web_sys/struct.HitRegionOptions.html" title="struct web_sys::HitRegionOptions">HitRegionOptions</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>addHitRegion()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/addHitRegion">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>HitRegionOptions</code></em></p>
|
||
|
</div></div><h3 id='impl-80' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-80' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clear_hit_regions' class="method"><code id='clear_hit_regions.v'>pub fn <a href='#method.clear_hit_regions' class='fnname'>clear_hit_regions</a>(&self)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>clearHitRegions()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clearHitRegions">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-81' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-81' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.remove_hit_region' class="method"><code id='remove_hit_region.v'>pub fn <a href='#method.remove_hit_region' class='fnname'>remove_hit_region</a>(&self, id: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>removeHitRegion()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/removeHitRegion">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-82' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-82' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.create_image_data_with_sw_and_sh' class="method"><code id='create_image_data_with_sw_and_sh.v'>pub fn <a href='#method.create_image_data_with_sw_and_sh' class='fnname'>create_image_data_with_sw_and_sh</a>(<br> &self, <br> sw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="../web_sys/struct.ImageData.html" title="struct web_sys::ImageData">ImageData</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>createImageData()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createImageData">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>ImageData</code></em></p>
|
||
|
</div></div><h3 id='impl-83' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-83' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.create_image_data_with_imagedata' class="method"><code id='create_image_data_with_imagedata.v'>pub fn <a href='#method.create_image_data_with_imagedata' class='fnname'>create_image_data_with_imagedata</a>(<br> &self, <br> imagedata: &<a class="struct" href="../web_sys/struct.ImageData.html" title="struct web_sys::ImageData">ImageData</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="../web_sys/struct.ImageData.html" title="struct web_sys::ImageData">ImageData</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>createImageData()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createImageData">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>ImageData</code></em></p>
|
||
|
</div></div><h3 id='impl-84' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-84' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.get_image_data' class="method"><code id='get_image_data.v'>pub fn <a href='#method.get_image_data' class='fnname'>get_image_data</a>(<br> &self, <br> sx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sw: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> sh: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="../web_sys/struct.ImageData.html" title="struct web_sys::ImageData">ImageData</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>getImageData()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>ImageData</code></em></p>
|
||
|
</div></div><h3 id='impl-85' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-85' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.put_image_data' class="method"><code id='put_image_data.v'>pub fn <a href='#method.put_image_data' class='fnname'>put_image_data</a>(<br> &self, <br> imagedata: &<a class="struct" href="../web_sys/struct.ImageData.html" title="struct web_sys::ImageData">ImageData</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>putImageData()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/putImageData">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>ImageData</code></em></p>
|
||
|
</div></div><h3 id='impl-86' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-86' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height' class="method"><code id='put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height.v'>pub fn <a href='#method.put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height' class='fnname'>put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height</a>(<br> &self, <br> imagedata: &<a class="struct" href="../web_sys/struct.ImageData.html" title="struct web_sys::ImageData">ImageData</a>, <br> dx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dirty_x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dirty_y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dirty_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> dirty_height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>putImageData()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/putImageData">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>ImageData</code></em></p>
|
||
|
</div></div><h3 id='impl-87' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-87' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.get_line_dash' class="method"><code id='get_line_dash.v'>pub fn <a href='#method.get_line_dash' class='fnname'>get_line_dash</a>(&self) -> <a class="struct" href="../js_sys/struct.Array.html" title="struct js_sys::Array">Array</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>getLineDash()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getLineDash">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-88' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-88' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_line_dash' class="method"><code id='set_line_dash.v'>pub fn <a href='#method.set_line_dash' class='fnname'>set_line_dash</a>(&self, segments: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</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="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>setLineDash()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-89' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-89' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.arc' class="method"><code id='arc.v'>pub fn <a href='#method.arc' class='fnname'>arc</a>(<br> &self, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> radius: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> start_angle: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> end_angle: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>arc()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arc">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-90' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-90' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.arc_with_anticlockwise' class="method"><code id='arc_with_anticlockwise.v'>pub fn <a href='#method.arc_with_anticlockwise' class='fnname'>arc_with_anticlockwise</a>(<br> &self, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> radius: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> start_angle: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> end_angle: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> anticlockwise: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>arc()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arc">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-91' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-91' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.arc_to' class="method"><code id='arc_to.v'>pub fn <a href='#method.arc_to' class='fnname'>arc_to</a>(<br> &self, <br> x1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y1: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> x2: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y2: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> radius: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>arcTo()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arcTo">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-92' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-92' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.bezier_curve_to' class="method"><code id='bezier_curve_to.v'>pub fn <a href='#method.bezier_curve_to' class='fnname'>bezier_curve_to</a>(<br> &self, <br> cp1x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> cp1y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> cp2x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> cp2y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a><br>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>bezierCurveTo()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-93' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-93' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.close_path' class="method"><code id='close_path.v'>pub fn <a href='#method.close_path' class='fnname'>close_path</a>(&self)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>closePath()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/closePath">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-94' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-94' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.ellipse' class="method"><code id='ellipse.v'>pub fn <a href='#method.ellipse' class='fnname'>ellipse</a>(<br> &self, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> radius_x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> radius_y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> rotation: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> start_angle: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> end_angle: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>ellipse()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/ellipse">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-95' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-95' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.ellipse_with_anticlockwise' class="method"><code id='ellipse_with_anticlockwise.v'>pub fn <a href='#method.ellipse_with_anticlockwise' class='fnname'>ellipse_with_anticlockwise</a>(<br> &self, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> radius_x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> radius_y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> rotation: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> start_angle: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> end_angle: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> anticlockwise: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>ellipse()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/ellipse">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-96' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-96' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.line_to' class="method"><code id='line_to.v'>pub fn <a href='#method.line_to' class='fnname'>line_to</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>lineTo()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineTo">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-97' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-97' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.move_to' class="method"><code id='move_to.v'>pub fn <a href='#method.move_to' class='fnname'>move_to</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>moveTo()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/moveTo">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-98' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-98' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.quadratic_curve_to' class="method"><code id='quadratic_curve_to.v'>pub fn <a href='#method.quadratic_curve_to' class='fnname'>quadratic_curve_to</a>(&self, cpx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, cpy: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>quadraticCurveTo()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-99' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-99' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.rect' class="method"><code id='rect.v'>pub fn <a href='#method.rect' class='fnname'>rect</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>rect()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/rect">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-100' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-100' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clear_rect' class="method"><code id='clear_rect.v'>pub fn <a href='#method.clear_rect' class='fnname'>clear_rect</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>clearRect()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clearRect">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-101' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-101' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fill_rect' class="method"><code id='fill_rect.v'>pub fn <a href='#method.fill_rect' class='fnname'>fill_rect</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>fillRect()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillRect">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-102' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-102' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.stroke_rect' class="method"><code id='stroke_rect.v'>pub fn <a href='#method.stroke_rect' class='fnname'>stroke_rect</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>strokeRect()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeRect">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-103' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-103' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.restore' class="method"><code id='restore.v'>pub fn <a href='#method.restore' class='fnname'>restore</a>(&self)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>restore()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/restore">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-104' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-104' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.save' class="method"><code id='save.v'>pub fn <a href='#method.save' class='fnname'>save</a>(&self)</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>save()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/save">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-105' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-105' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fill_text' class="method"><code id='fill_text.v'>pub fn <a href='#method.fill_text' class='fnname'>fill_text</a>(&self, text: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>fillText()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillText">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-106' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-106' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fill_text_with_max_width' class="method"><code id='fill_text_with_max_width.v'>pub fn <a href='#method.fill_text_with_max_width' class='fnname'>fill_text_with_max_width</a>(<br> &self, <br> text: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> max_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>fillText()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillText">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-107' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-107' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.measure_text' class="method"><code id='measure_text.v'>pub fn <a href='#method.measure_text' class='fnname'>measure_text</a>(&self, text: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</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="struct" href="../web_sys/struct.TextMetrics.html" title="struct web_sys::TextMetrics">TextMetrics</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>measureText()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/measureText">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>TextMetrics</code></em></p>
|
||
|
</div></div><h3 id='impl-108' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-108' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.stroke_text' class="method"><code id='stroke_text.v'>pub fn <a href='#method.stroke_text' class='fnname'>stroke_text</a>(&self, text: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>strokeText()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeText">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-109' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-109' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.stroke_text_with_max_width' class="method"><code id='stroke_text_with_max_width.v'>pub fn <a href='#method.stroke_text_with_max_width' class='fnname'>stroke_text_with_max_width</a>(<br> &self, <br> text: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> max_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>strokeText()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeText">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-110' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-110' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.get_transform' class="method"><code id='get_transform.v'>pub fn <a href='#method.get_transform' class='fnname'>get_transform</a>(&self) -> <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="../web_sys/struct.DomMatrix.html" title="struct web_sys::DomMatrix">DomMatrix</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>getTransform()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getTransform">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>DomMatrix</code></em></p>
|
||
|
</div></div><h3 id='impl-111' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-111' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.reset_transform' class="method"><code id='reset_transform.v'>pub fn <a href='#method.reset_transform' class='fnname'>reset_transform</a>(&self) -> <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="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>resetTransform()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/resetTransform">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-112' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-112' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.rotate' class="method"><code id='rotate.v'>pub fn <a href='#method.rotate' class='fnname'>rotate</a>(&self, angle: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>rotate()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/rotate">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-113' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-113' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.scale' class="method"><code id='scale.v'>pub fn <a href='#method.scale' class='fnname'>scale</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>scale()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/scale">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-114' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-114' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_transform' class="method"><code id='set_transform.v'>pub fn <a href='#method.set_transform' class='fnname'>set_transform</a>(<br> &self, <br> a: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> b: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> c: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> d: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> e: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> f: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>setTransform()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setTransform">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-115' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-115' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.transform' class="method"><code id='transform.v'>pub fn <a href='#method.transform' class='fnname'>transform</a>(<br> &self, <br> a: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> b: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> c: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> d: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> e: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, <br> f: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>transform()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/transform">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-116' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-116' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.translate' class="method"><code id='translate.v'>pub fn <a href='#method.translate' class='fnname'>translate</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</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="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>translate()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/translate">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h3 id='impl-117' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-117' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_custom_focus_ring' class="method"><code id='draw_custom_focus_ring.v'>pub fn <a href='#method.draw_custom_focus_ring' class='fnname'>draw_custom_focus_ring</a>(&self, element: &<a class="struct" href="../web_sys/struct.Element.html" title="struct web_sys::Element">Element</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawCustomFocusRing()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawCustomFocusRing">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>Element</code></em></p>
|
||
|
</div></div><h3 id='impl-118' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-118' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.draw_focus_if_needed' class="method"><code id='draw_focus_if_needed.v'>pub fn <a href='#method.draw_focus_if_needed' class='fnname'>draw_focus_if_needed</a>(&self, element: &<a class="struct" href="../web_sys/struct.Element.html" title="struct web_sys::Element">Element</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="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>drawFocusIfNeeded()</code> method.</p>
|
||
|
<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded">MDN Documentation</a></p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code>, <code>Element</code></em></p>
|
||
|
</div></div><h3 id='impl-119' class='impl'><code class='in-band'>impl <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-119' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#1225-1246' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedconstant.DRAWWINDOW_DRAW_CARET' class="associatedconstant"><code id='DRAWWINDOW_DRAW_CARET.v'>pub const <a href='#associatedconstant.DRAWWINDOW_DRAW_CARET' class="constant"><b>DRAWWINDOW_DRAW_CARET</b></a>: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#1229' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>CanvasRenderingContext2D.DRAWWINDOW_DRAW_CARET</code> const.</p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div><h4 id='associatedconstant.DRAWWINDOW_DO_NOT_FLUSH' class="associatedconstant"><code id='DRAWWINDOW_DO_NOT_FLUSH.v'>pub const <a href='#associatedconstant.DRAWWINDOW_DO_NOT_FLUSH' class="constant"><b>DRAWWINDOW_DO_NOT_FLUSH</b></a>: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#1233' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>CanvasRenderingContext2D.DRAWWINDOW_DO_NOT_FLUSH</code> const.</p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div><h4 id='associatedconstant.DRAWWINDOW_DRAW_VIEW' class="associatedconstant"><code id='DRAWWINDOW_DRAW_VIEW.v'>pub const <a href='#associatedconstant.DRAWWINDOW_DRAW_VIEW' class="constant"><b>DRAWWINDOW_DRAW_VIEW</b></a>: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#1237' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>CanvasRenderingContext2D.DRAWWINDOW_DRAW_VIEW</code> const.</p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div><h4 id='associatedconstant.DRAWWINDOW_USE_WIDGET_LAYERS' class="associatedconstant"><code id='DRAWWINDOW_USE_WIDGET_LAYERS.v'>pub const <a href='#associatedconstant.DRAWWINDOW_USE_WIDGET_LAYERS' class="constant"><b>DRAWWINDOW_USE_WIDGET_LAYERS</b></a>: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#1241' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>CanvasRenderingContext2D.DRAWWINDOW_USE_WIDGET_LAYERS</code> const.</p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div><h4 id='associatedconstant.DRAWWINDOW_ASYNC_DECODE_IMAGES' class="associatedconstant"><code id='DRAWWINDOW_ASYNC_DECODE_IMAGES.v'>pub const <a href='#associatedconstant.DRAWWINDOW_ASYNC_DECODE_IMAGES' class="constant"><b>DRAWWINDOW_ASYNC_DECODE_IMAGES</b></a>: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#1245' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>CanvasRenderingContext2D.DRAWWINDOW_ASYNC_DECODE_IMAGES</code> const.</p>
|
||
|
<p><em>This API requires the following crate features to be activated: <code>CanvasRenderingContext2d</code></em></p>
|
||
|
</div></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-AsRef%3CCanvasRenderingContext2d%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a>> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-AsRef%3CCanvasRenderingContext2d%3E' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_ref-1' class="method hidden"><code id='as_ref.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref' class='fnname'>as_ref</a>(&self) -> &<a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
|
</div></div><h3 id='impl-AsRef%3CJsValue%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-AsRef%3CJsValue%3E' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_ref' class="method hidden"><code id='as_ref.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref' class='fnname'>as_ref</a>(&self) -> &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
|
</div></div><h3 id='impl-AsRef%3CObject%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-AsRef%3CObject%3E' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_ref-2' class="method hidden"><code id='as_ref.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref' class='fnname'>as_ref</a>(&self) -> &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
|
</div></div><h3 id='impl-Clone' class='impl'><code class='in-band'>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="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#7' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>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="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#7' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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 hidden"><code id='clone_from.v'>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 class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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-Debug' class='impl'><code class='in-band'>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="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#7' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &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="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#7' title='goto source code'>[src]</a></h4><div class='docblock hidden'><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><h3 id='impl-Deref' class='impl'><code class='in-band'>impl <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="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-Deref' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' 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="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</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>(&self) -> &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Dereferences the value.</p>
|
||
|
</div></div><h3 id='impl-Eq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#7' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-From%3CCanvasRenderingContext2d%3E' class='impl'><code class='in-band'>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="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a>> for <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a></code><a href='#impl-From%3CCanvasRenderingContext2d%3E' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-1' class="method hidden"><code id='from.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(obj: <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a>) -> <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
|
</div></div><h3 id='impl-From%3CCanvasRenderingContext2d%3E-1' class='impl'><code class='in-band'>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="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a>> for <a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a></code><a href='#impl-From%3CCanvasRenderingContext2d%3E-1' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-2' class="method hidden"><code id='from.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(obj: <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a>) -> <a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
|
</div></div><h3 id='impl-From%3CJsValue%3E' class='impl'><code class='in-band'>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="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-From%3CJsValue%3E' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' 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>(obj: <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
|
</div></div><h3 id='impl-FromWasmAbi' class='impl'><code class='in-band'>impl <a class="trait" href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html" title="trait wasm_bindgen::convert::traits::FromWasmAbi">FromWasmAbi</a> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-FromWasmAbi' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Abi-1' class="type"><code id='Abi.t-1'>type <a href='../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#associatedtype.Abi' class="type">Abi</a> = <<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a> as <a class="trait" href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html" title="trait wasm_bindgen::convert::traits::FromWasmAbi">FromWasmAbi</a>>::<a class="type" href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::FromWasmAbi::Abi">Abi</a></code></h4><div class='docblock'><p>The wasm ABI type that this converts from when coming back out from the ABI boundary. <a href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#associatedtype.Abi">Read more</a></p>
|
||
|
</div><h4 id='method.from_abi' class="method hidden"><code id='from_abi.v'>unsafe fn <a href='../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#tymethod.from_abi' class='fnname'>from_abi</a>(js: Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::FromWasmAbi::Abi">Abi</a>) -> Self</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Recover a <code>Self</code> from <code>Self::Abi</code>. <a href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#tymethod.from_abi">Read more</a></p>
|
||
|
</div></div><h3 id='impl-IntoWasmAbi' class='impl'><code class='in-band'>impl <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-IntoWasmAbi' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Abi-2' class="type"><code id='Abi.t-2'>type <a href='../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi' class="type">Abi</a> = <<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a> as <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a>>::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code></h4><div class='docblock'><p>The wasm ABI type that this converts into when crossing the ABI boundary. <a href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi">Read more</a></p>
|
||
|
</div><h4 id='method.into_abi' class="method hidden"><code id='into_abi.v'>fn <a href='../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#tymethod.into_abi' class='fnname'>into_abi</a>(self) -> Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert <code>self</code> into <code>Self::Abi</code> so that it can be sent across the wasm ABI boundary. <a href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#tymethod.into_abi">Read more</a></p>
|
||
|
</div></div><h3 id='impl-IntoWasmAbi-1' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a> for &'a <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-IntoWasmAbi-1' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Abi-3' class="type"><code id='Abi.t-3'>type <a href='../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi' class="type">Abi</a> = <&'a <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a> as <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a>>::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code></h4><div class='docblock'><p>The wasm ABI type that this converts into when crossing the ABI boundary. <a href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi">Read more</a></p>
|
||
|
</div><h4 id='method.into_abi-1' class="method hidden"><code id='into_abi.v-1'>fn <a href='../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#tymethod.into_abi' class='fnname'>into_abi</a>(self) -> Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert <code>self</code> into <code>Self::Abi</code> so that it can be sent across the wasm ABI boundary. <a href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#tymethod.into_abi">Read more</a></p>
|
||
|
</div></div><h3 id='impl-JsCast' class='impl'><code class='in-band'>impl <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-JsCast' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.instanceof' class="method hidden"><code id='instanceof.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#tymethod.instanceof' class='fnname'>instanceof</a>(val: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a dynamic <code>instanceof</code> check to see whether the <code>JsValue</code> provided is an instance of this type. <a href="../wasm_bindgen/cast/trait.JsCast.html#tymethod.instanceof">Read more</a></p>
|
||
|
</div><h4 id='method.unchecked_from_js' class="method hidden"><code id='unchecked_from_js.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#tymethod.unchecked_from_js' class='fnname'>unchecked_from_js</a>(val: <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> Self</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a zero-cost unchecked conversion from a <code>JsValue</code> into an instance of <code>Self</code> <a href="../wasm_bindgen/cast/trait.JsCast.html#tymethod.unchecked_from_js">Read more</a></p>
|
||
|
</div><h4 id='method.unchecked_from_js_ref' class="method hidden"><code id='unchecked_from_js_ref.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#tymethod.unchecked_from_js_ref' class='fnname'>unchecked_from_js_ref</a>(val: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a zero-cost unchecked conversion from a <code>&JsValue</code> into an instance of <code>&Self</code>. <a href="../wasm_bindgen/cast/trait.JsCast.html#tymethod.unchecked_from_js_ref">Read more</a></p>
|
||
|
</div><h4 id='method.has_type' class="method hidden"><code id='has_type.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.has_type' class='fnname'>has_type</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>, </span></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#30-35' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Test whether this JS value has a type <code>T</code>. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.has_type">Read more</a></p>
|
||
|
</div><h4 id='method.dyn_into' class="method hidden"><code id='dyn_into.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.dyn_into' class='fnname'>dyn_into</a><T>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, Self> <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>, </span></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#43-52' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a dynamic cast (checked at runtime) of this value into the target type <code>T</code>. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.dyn_into">Read more</a></p>
|
||
|
</div><h4 id='method.dyn_ref' class="method hidden"><code id='dyn_ref.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.dyn_ref' class='fnname'>dyn_ref</a><T>(&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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T> <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>, </span></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#60-69' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a dynamic cast (checked at runtime) of this value into the target type <code>T</code>. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.dyn_ref">Read more</a></p>
|
||
|
</div><h4 id='method.unchecked_into' class="method hidden"><code id='unchecked_into.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.unchecked_into' class='fnname'>unchecked_into</a><T>(self) -> T <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>, </span></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#78-83' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a zero-cost unchecked cast into the specified type. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.unchecked_into">Read more</a></p>
|
||
|
</div><h4 id='method.unchecked_ref' class="method hidden"><code id='unchecked_ref.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.unchecked_ref' class='fnname'>unchecked_ref</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>, </span></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#96-101' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a zero-cost unchecked cast into a reference to the specified type. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.unchecked_ref">Read more</a></p>
|
||
|
</div><h4 id='method.is_instance_of' class="method hidden"><code id='is_instance_of.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.is_instance_of' class='fnname'>is_instance_of</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>, </span></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#112-117' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Test whether this JS value is an instance of the type <code>T</code>. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.is_instance_of">Read more</a></p>
|
||
|
</div><h4 id='method.is_type_of' class="method hidden"><code id='is_type_of.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.is_type_of' class='fnname'>is_type_of</a>(val: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#136-138' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a dynamic check to see whether the <code>JsValue</code> provided is a value of this type. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.is_type_of">Read more</a></p>
|
||
|
</div></div><h3 id='impl-OptionFromWasmAbi' class='impl'><code class='in-band'>impl <a class="trait" href="../wasm_bindgen/convert/traits/trait.OptionFromWasmAbi.html" title="trait wasm_bindgen::convert::traits::OptionFromWasmAbi">OptionFromWasmAbi</a> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-OptionFromWasmAbi' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.is_none' class="method hidden"><code id='is_none.v'>fn <a href='../wasm_bindgen/convert/traits/trait.OptionFromWasmAbi.html#tymethod.is_none' class='fnname'>is_none</a>(abi: &Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::FromWasmAbi::Abi">Abi</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Tests whether the argument is a "none" instance. If so it will be deserialized as <code>None</code>, and otherwise it will be passed to <code>FromWasmAbi</code>. <a href="../wasm_bindgen/convert/traits/trait.OptionFromWasmAbi.html#tymethod.is_none">Read more</a></p>
|
||
|
</div></div><h3 id='impl-OptionIntoWasmAbi' class='impl'><code class='in-band'>impl <a class="trait" href="../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::OptionIntoWasmAbi">OptionIntoWasmAbi</a> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-OptionIntoWasmAbi' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.none' class="method hidden"><code id='none.v'>fn <a href='../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html#tymethod.none' class='fnname'>none</a>() -> Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns an ABI instance indicating "none", which JS will interpret as the <code>None</code> branch of this option. <a href="../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html#tymethod.none">Read more</a></p>
|
||
|
</div></div><h3 id='impl-OptionIntoWasmAbi-1' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::OptionIntoWasmAbi">OptionIntoWasmAbi</a> for &'a <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-OptionIntoWasmAbi-1' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.none-1' class="method hidden"><code id='none.v-1'>fn <a href='../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html#tymethod.none' class='fnname'>none</a>() -> Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns an ABI instance indicating "none", which JS will interpret as the <code>None</code> branch of this option. <a href="../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html#tymethod.none">Read more</a></p>
|
||
|
</div></div><h3 id='impl-PartialEq%3CCanvasRenderingContext2d%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a>> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-PartialEq%3CCanvasRenderingContext2d%3E' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#7' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code id='eq.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#7' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
|
</div><h4 id='method.ne' class="method hidden"><code id='ne.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: &<a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#7' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||
|
</div></div><h3 id='impl-RefFromWasmAbi' class='impl'><code class='in-band'>impl <a class="trait" href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html" title="trait wasm_bindgen::convert::traits::RefFromWasmAbi">RefFromWasmAbi</a> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-RefFromWasmAbi' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Abi' class="type"><code id='Abi.t'>type <a href='../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#associatedtype.Abi' class="type">Abi</a> = <<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a> as <a class="trait" href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html" title="trait wasm_bindgen::convert::traits::RefFromWasmAbi">RefFromWasmAbi</a>>::<a class="type" href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::RefFromWasmAbi::Abi">Abi</a></code></h4><div class='docblock'><p>The wasm ABI type references to <code>Self</code> are recovered from.</p>
|
||
|
</div><h4 id='associatedtype.Anchor' class="type"><code id='Anchor.t'>type <a href='../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#associatedtype.Anchor' class="type">Anchor</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/mem/manually_drop/struct.ManuallyDrop.html" title="struct core::mem::manually_drop::ManuallyDrop">ManuallyDrop</a><<a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a>></code></h4><div class='docblock'><p>The type that holds the reference to <code>Self</code> for the duration of the invocation of the function that has an <code>&Self</code> parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. <a href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#associatedtype.Anchor">Read more</a></p>
|
||
|
</div><h4 id='method.ref_from_abi' class="method hidden"><code id='ref_from_abi.v'>unsafe fn <a href='../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#tymethod.ref_from_abi' class='fnname'>ref_from_abi</a>(js: Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::RefFromWasmAbi::Abi">Abi</a>) -> Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#associatedtype.Anchor" title="type wasm_bindgen::convert::traits::RefFromWasmAbi::Anchor">Anchor</a></code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Recover a <code>Self::Anchor</code> from <code>Self::Abi</code>. <a href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#tymethod.ref_from_abi">Read more</a></p>
|
||
|
</div></div><h3 id='impl-StructuralEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-StructuralEq' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#7' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-StructuralPartialEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-StructuralPartialEq' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#7' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-WasmDescribe' class='impl'><code class='in-band'>impl WasmDescribe for <a class="struct" href="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></code><a href='#impl-WasmDescribe' class='anchor'></a><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.describe' class="method hidden"><code id='describe.v'>fn <a href='#method.describe' class='fnname'>describe</a>()</code><a class='srclink' href='../src/web_sys/features/gen_CanvasRenderingContext2d.rs.html#4' title='goto source code'>[src]</a></h4></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 <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="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></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 !<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="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></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 !<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="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></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 <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="../web_sys/struct.CanvasRenderingContext2d.html" title="struct web_sys::CanvasRenderingContext2d">CanvasRenderingContext2d</a></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 <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"
|
||
|
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </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>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </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>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> 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-3' class="method hidden"><code id='from.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> 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<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </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) -> 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-ReturnWasmAbi' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html" title="trait wasm_bindgen::convert::traits::ReturnWasmAbi">ReturnWasmAbi</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a>, </span></code><a href='#impl-ReturnWasmAbi' class='anchor'></a><a class='srclink' href='../src/wasm_bindgen/convert/traits.rs.html#122-129' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Abi-4' class="type"><code id='Abi.t-4'>type <a href='../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html#associatedtype.Abi' class="type">Abi</a> = <T as <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a>>::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code></h4><div class='docblock'><p>Same as <code>IntoWasmAbi::Abi</code></p>
|
||
|
</div><h4 id='method.return_abi' class="method hidden"><code id='return_abi.v'>fn <a href='../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html#tymethod.return_abi' class='fnname'>return_abi</a>(self) -> <T as <a class="trait" href="../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html" title="trait wasm_bindgen::convert::traits::ReturnWasmAbi">ReturnWasmAbi</a>>::<a class="type" href="../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::ReturnWasmAbi::Abi">Abi</a></code><a class='srclink' href='../src/wasm_bindgen/convert/traits.rs.html#126-128' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Same as <code>IntoWasmAbi::into_abi</code>, except that it may throw and never return in the case of <code>Err</code>. <a href="../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html#tymethod.return_abi">Read more</a></p>
|
||
|
</div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||
|
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||
|
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||
|
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||
|
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </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) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<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><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<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </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> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<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) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<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><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 = "web_sys";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
|