pub struct RbxTree { /* fields omitted */ }
Represents a tree containing rooted instances.
Rooted instances are described by
RbxInstance and have an ID, children,
and a parent.
Construct a new RbxTree
with its root instance constructed using the
given properties.
Returns the ID of the root instance in the tree, which can be used
alongside get_instance
and friends.
Returns an iterator over all IDs in the tree.
Returns the instance with the given ID if it's contained in this tree.
Returns mutable access to the instance with the given ID if it's
contained in this tree.
Inserts a new instance with the given properties into the tree, putting it
under the instance with the given ID.
Panics if the given ID does not refer to an instance in this tree.
Given an ID, remove the instance from the tree with that ID, along with
all of its descendants.
Returns an iterator over all of the descendants of the given instance by
ID.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
type Owned = T
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
type Error = !
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static