[−][src]Struct js_sys::WeakSet
Implementations
impl WeakSet
[src][−]
pub fn new() -> WeakSet
[src][−]
The WeakSet
object lets you store weakly held objects in a collection.
impl WeakSet
[src][−]
pub fn has(&self, value: &Object) -> bool
[src][−]
The has()
method returns a boolean indicating whether an object exists
in a WeakSet or not.
impl WeakSet
[src][−]
pub fn add(&self, value: &Object) -> WeakSet
[src][−]
The add()
method appends a new object to the end of a WeakSet object.
impl WeakSet
[src][−]
pub fn delete(&self, value: &Object) -> bool
[src][−]
The delete()
method removes the specified element from a WeakSet
object.
Methods from Deref<Target = Object>
pub fn constructor(&self) -> Function
[src][−]
The constructor property returns a reference to the Object
constructor
function that created the instance object.
pub fn has_own_property(&self, property: &JsValue) -> bool
[src][−]
The hasOwnProperty()
method returns a boolean indicating whether the
object has the specified property as its own property (as opposed to
inheriting it).
pub fn is_prototype_of(&self, value: &JsValue) -> bool
[src][−]
The isPrototypeOf()
method checks if an object exists in another
object's prototype chain.
pub fn property_is_enumerable(&self, property: &JsValue) -> bool
[src][−]
The propertyIsEnumerable()
method returns a Boolean indicating
whether the specified property is enumerable.
pub fn to_locale_string(&self) -> JsString
[src][−]
The toLocaleString()
method returns a string representing the object.
This method is meant to be overridden by derived objects for
locale-specific purposes.
pub fn to_string(&self) -> JsString
[src][−]
The toString()
method returns a string representing the object.
pub fn value_of(&self) -> Object
[src][−]
The valueOf()
method returns the primitive value of the
specified object.
Trait Implementations
impl AsRef<JsValue> for WeakSet
[src][+]
impl AsRef<Object> for WeakSet
[src][+]
impl AsRef<WeakSet> for WeakSet
[src][+]
impl Clone for WeakSet
[src][+]
impl Debug for WeakSet
[src][+]
impl Deref for WeakSet
[src][+]
impl Eq for WeakSet
[src]
impl From<JsValue> for WeakSet
[src][+]
impl From<WeakSet> for JsValue
[src][+]
impl From<WeakSet> for Object
[src][+]
impl FromWasmAbi for WeakSet
[src][+]
impl IntoWasmAbi for WeakSet
[src][+]
impl<'a> IntoWasmAbi for &'a WeakSet
[src][+]
impl JsCast for WeakSet
[src][+]
impl OptionFromWasmAbi for WeakSet
[src][+]
impl OptionIntoWasmAbi for WeakSet
[src][+]
impl<'a> OptionIntoWasmAbi for &'a WeakSet
[src][+]
impl PartialEq<WeakSet> for WeakSet
[src][+]
impl RefFromWasmAbi for WeakSet
[src][+]
impl StructuralEq for WeakSet
[src]
impl StructuralPartialEq for WeakSet
[src]
impl WasmDescribe for WeakSet
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for WeakSet
impl !Send for WeakSet
impl !Sync for WeakSet
impl Unpin for WeakSet
impl UnwindSafe for WeakSet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src][+]
T: IntoWasmAbi,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,