mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 12:31:22 +00:00
50 lines
9.3 KiB
HTML
50 lines
9.3 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 `Reflect` mod in crate `js_sys`."><meta name="keywords" content="rust, rustlang, rust-lang, Reflect"><title>js_sys::Reflect - 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 mod"><!--[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='../../js_sys/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module Reflect</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>js_sys</a></p><script>window.sidebarCurrent = {name: 'Reflect', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/js_sys/lib.rs.html#2746-2919' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>js_sys</a>::<wbr><a class="mod" href=''>Reflect</a></span></h1><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||
<table><tr class='module-item'><td><a class="fn" href="fn.apply.html" title='js_sys::Reflect::apply fn'>apply</a></td><td class='docblock-short'><p>The static <code>Reflect.apply()</code> method calls a target function with
|
||
arguments as specified.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.construct.html" title='js_sys::Reflect::construct fn'>construct</a></td><td class='docblock-short'><p>The static <code>Reflect.construct()</code> method acts like the new operator, but
|
||
as a function. It is equivalent to calling <code>new target(...args)</code>. It
|
||
gives also the added option to specify a different prototype.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.construct_with_new_target.html" title='js_sys::Reflect::construct_with_new_target fn'>construct_with_new_target</a></td><td class='docblock-short'><p>The static <code>Reflect.construct()</code> method acts like the new operator, but
|
||
as a function. It is equivalent to calling <code>new target(...args)</code>. It
|
||
gives also the added option to specify a different prototype.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.define_property.html" title='js_sys::Reflect::define_property fn'>define_property</a></td><td class='docblock-short'><p>The static <code>Reflect.defineProperty()</code> method is like
|
||
<code>Object.defineProperty()</code> but returns a <code>Boolean</code>.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.delete_property.html" title='js_sys::Reflect::delete_property fn'>delete_property</a></td><td class='docblock-short'><p>The static <code>Reflect.deleteProperty()</code> method allows to delete
|
||
properties. It is like the <code>delete</code> operator as a function.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.get.html" title='js_sys::Reflect::get fn'>get</a></td><td class='docblock-short'><p>The static <code>Reflect.get()</code> method works like getting a property from
|
||
an object (<code>target[propertyKey]</code>) as a function.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.get_f64.html" title='js_sys::Reflect::get_f64 fn'>get_f64</a></td><td class='docblock-short'><p>The same as <a href="fn.get.html"><code>get</code></a>
|
||
except the key is an <code>f64</code>, which is slightly faster.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.get_own_property_descriptor.html" title='js_sys::Reflect::get_own_property_descriptor fn'>get_own_property_descriptor</a></td><td class='docblock-short'><p>The static <code>Reflect.getOwnPropertyDescriptor()</code> method is similar to
|
||
<code>Object.getOwnPropertyDescriptor()</code>. It returns a property descriptor
|
||
of the given property if it exists on the object, <code>undefined</code> otherwise.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.get_prototype_of.html" title='js_sys::Reflect::get_prototype_of fn'>get_prototype_of</a></td><td class='docblock-short'><p>The static <code>Reflect.getPrototypeOf()</code> method is almost the same
|
||
method as <code>Object.getPrototypeOf()</code>. It returns the prototype
|
||
(i.e. the value of the internal <code>[[Prototype]]</code> property) of
|
||
the specified object.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.get_u32.html" title='js_sys::Reflect::get_u32 fn'>get_u32</a></td><td class='docblock-short'><p>The same as <a href="fn.get.html"><code>get</code></a>
|
||
except the key is a <code>u32</code>, which is slightly faster.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.has.html" title='js_sys::Reflect::has fn'>has</a></td><td class='docblock-short'><p>The static <code>Reflect.has()</code> method works like the in operator as a
|
||
function.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.is_extensible.html" title='js_sys::Reflect::is_extensible fn'>is_extensible</a></td><td class='docblock-short'><p>The static <code>Reflect.isExtensible()</code> method determines if an object is
|
||
extensible (whether it can have new properties added to it). It is
|
||
similar to <code>Object.isExtensible()</code>, but with some differences.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.own_keys.html" title='js_sys::Reflect::own_keys fn'>own_keys</a></td><td class='docblock-short'><p>The static <code>Reflect.ownKeys()</code> method returns an array of the
|
||
target object's own property keys.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.prevent_extensions.html" title='js_sys::Reflect::prevent_extensions fn'>prevent_extensions</a></td><td class='docblock-short'><p>The static <code>Reflect.preventExtensions()</code> method prevents new
|
||
properties from ever being added to an object (i.e. prevents
|
||
future extensions to the object). It is similar to
|
||
<code>Object.preventExtensions()</code>, but with some differences.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.set.html" title='js_sys::Reflect::set fn'>set</a></td><td class='docblock-short'><p>The static <code>Reflect.set()</code> method works like setting a
|
||
property on an object.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.set_f64.html" title='js_sys::Reflect::set_f64 fn'>set_f64</a></td><td class='docblock-short'><p>The same as <a href="fn.set.html"><code>set</code></a>
|
||
except the key is an <code>f64</code>, which is slightly faster.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.set_prototype_of.html" title='js_sys::Reflect::set_prototype_of fn'>set_prototype_of</a></td><td class='docblock-short'><p>The static <code>Reflect.setPrototypeOf()</code> method is the same
|
||
method as <code>Object.setPrototypeOf()</code>. It sets the prototype
|
||
(i.e., the internal <code>[[Prototype]]</code> property) of a specified
|
||
object to another object or to null.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.set_u32.html" title='js_sys::Reflect::set_u32 fn'>set_u32</a></td><td class='docblock-short'><p>The same as <a href="fn.set.html"><code>set</code></a>
|
||
except the key is a <code>u32</code>, which is slightly faster.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.set_with_receiver.html" title='js_sys::Reflect::set_with_receiver fn'>set_with_receiver</a></td><td class='docblock-short'><p>The static <code>Reflect.set()</code> method works like setting a
|
||
property on an object.</p>
|
||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "js_sys";</script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html> |