pub struct TreeBuilderClone<T> { /* private fields */ }
Expand description

Cloneable version of the crate::TreeBuilder

Implementations

Construct a new empty tree

Reserve the entity which this node will spawn

Spawn the whole tree into the world

Spawn the whole tree into a commandbuffer. The world is required for reserving entities.

Add a component to the root

Add a bundle to the root

Atttach a new subtree

Attach a new leaf

Consuming variant of Self::attach.

This is useful for nesting to alleviate the need to save an intermediate builder

Consuming variant of Self::attach_tree. This is useful for nesting to alleviate the need to save an intermediate builder

Get a reference to the deferred tree builder’s children.

Get a reference to the deferred tree builder’s root.

Get a mutable reference to the deferred tree builder’s builder.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.