Struct PropertyMap

Source
pub struct PropertyMap { /* private fields */ }

Implementations§

Source§

impl PropertyMap

Source

pub fn new() -> Self

Source

pub fn get(&self, key: &PropertyKey) -> Option<&PropertyDescriptor>

Source

pub fn insert( &mut self, key: PropertyKey, property: PropertyDescriptor, ) -> Option<PropertyDescriptor>

Source

pub fn remove(&mut self, key: &PropertyKey) -> Option<PropertyDescriptor>

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn contains_key(&self, key: &PropertyKey) -> bool

Trait Implementations§

Source§

impl Debug for PropertyMap

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PropertyMap

Source§

fn default() -> PropertyMap

Returns the “default value” for a type. Read more
Source§

impl Drop for PropertyMap

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Finalize for PropertyMap

Source§

impl Trace for PropertyMap

Source§

unsafe fn trace(&self)

Marks all contained Gcs.
Source§

unsafe fn root(&self)

Increments the root-count of all contained Gcs.
Source§

unsafe fn unroot(&self)

Decrements the root-count of all contained Gcs.
Source§

fn finalize_glue(&self)

Runs Finalize::finalize() on this object and all contained subobjects

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> NativeObject for T
where T: Any + Debug + Trace,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert the Rust type which implements NativeObject to a &dyn Any.
Source§

fn as_mut_any(&mut self) -> &mut (dyn Any + 'static)

Convert the Rust type which implements NativeObject to a &mut dyn Any.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V