This reference describes unreleased code on main; no release documents it yet.

rlmesh::spaces::DictSpaces

structPreviewuse rlmesh::spaces::DictSpaces;[source]

A Dict's children: an ordered, read-only map.

struct DictSpaces

keys

method[source]
fn keys(&self) -> DictKeys<'_>

The keys, in declaration order.

values

method[source]
fn values(&self) -> DictValues<'_>

The child spaces, in declaration order.

items

method[source]
fn items(&self) -> DictItems<'_>

The (key, space) pairs, in declaration order.

iter

method[source]
fn iter(&self) -> DictKeys<'_>

The keys.

get

method[source]
fn get(&self, key: &str) -> Option<&Space>

The child space at key, or None.

len

method[source]
fn len(&self) -> usize

The number of children.

contains_key

method[source]
fn contains_key(&self, key: &str) -> bool

Whether key names a child.

Trait implementations

  • impl Index<&str> for DictSpaces
  • impl<'a> IntoIterator for &'a DictSpaces