pub struct PropertyMap { /* private fields */ }
Implementations§
Source§impl PropertyMap
impl PropertyMap
pub fn new() -> Self
pub fn get(&self, key: &PropertyKey) -> Option<&PropertyDescriptor>
pub fn insert( &mut self, key: PropertyKey, property: PropertyDescriptor, ) -> Option<PropertyDescriptor>
pub fn remove(&mut self, key: &PropertyKey) -> Option<PropertyDescriptor>
Sourcepub fn iter(&self) -> Iter<'_> ⓘ
pub fn iter(&self) -> Iter<'_> ⓘ
An iterator visiting all key-value pairs in arbitrary order. The iterator element type is (PropertyKey, &'a Property)
.
This iterator does not recurse down the prototype chain.
Sourcepub fn keys(&self) -> Keys<'_> ⓘ
pub fn keys(&self) -> Keys<'_> ⓘ
An iterator visiting all keys in arbitrary order. The iterator element type is PropertyKey
.
This iterator does not recurse down the prototype chain.
Sourcepub fn values(&self) -> Values<'_> ⓘ
pub fn values(&self) -> Values<'_> ⓘ
An iterator visiting all values in arbitrary order. The iterator element type is &'a Property
.
This iterator does not recurse down the prototype chain.
Sourcepub fn symbol_properties(&self) -> SymbolProperties<'_> ⓘ
pub fn symbol_properties(&self) -> SymbolProperties<'_> ⓘ
An iterator visiting all symbol key-value pairs in arbitrary order. The iterator element type is (&'a RcSymbol, &'a Property)
.
This iterator does not recurse down the prototype chain.
Sourcepub fn symbol_property_keys(&self) -> SymbolPropertyKeys<'_> ⓘ
pub fn symbol_property_keys(&self) -> SymbolPropertyKeys<'_> ⓘ
An iterator visiting all symbol keys in arbitrary order. The iterator element type is &'a RcSymbol
.
This iterator does not recurse down the prototype chain.
Sourcepub fn symbol_property_values(&self) -> SymbolPropertyValues<'_> ⓘ
pub fn symbol_property_values(&self) -> SymbolPropertyValues<'_> ⓘ
An iterator visiting all symbol values in arbitrary order. The iterator element type is &'a Property
.
This iterator does not recurse down the prototype chain.
Sourcepub fn index_properties(&self) -> IndexProperties<'_> ⓘ
pub fn index_properties(&self) -> IndexProperties<'_> ⓘ
An iterator visiting all indexed key-value pairs in arbitrary order. The iterator element type is (&'a u32, &'a Property)
.
This iterator does not recurse down the prototype chain.
Sourcepub fn index_property_keys(&self) -> IndexPropertyKeys<'_> ⓘ
pub fn index_property_keys(&self) -> IndexPropertyKeys<'_> ⓘ
An iterator visiting all index keys in arbitrary order. The iterator element type is &'a u32
.
This iterator does not recurse down the prototype chain.
Sourcepub fn index_property_values(&self) -> IndexPropertyValues<'_> ⓘ
pub fn index_property_values(&self) -> IndexPropertyValues<'_> ⓘ
An iterator visiting all index values in arbitrary order. The iterator element type is &'a Property
.
This iterator does not recurse down the prototype chain.
Sourcepub fn string_properties(&self) -> StringProperties<'_> ⓘ
pub fn string_properties(&self) -> StringProperties<'_> ⓘ
An iterator visiting all string key-value pairs in arbitrary order. The iterator element type is (&'a RcString, &'a Property)
.
This iterator does not recurse down the prototype chain.
Sourcepub fn string_property_keys(&self) -> StringPropertyKeys<'_> ⓘ
pub fn string_property_keys(&self) -> StringPropertyKeys<'_> ⓘ
An iterator visiting all string keys in arbitrary order. The iterator element type is &'a RcString
.
This iterator does not recurse down the prototype chain.
Sourcepub fn string_property_values(&self) -> StringPropertyValues<'_> ⓘ
pub fn string_property_values(&self) -> StringPropertyValues<'_> ⓘ
An iterator visiting all string values in arbitrary order. The iterator element type is &'a Property
.
This iterator does not recurse down the prototype chain.