pub struct ShadowTree {
pub shadow_roots: Vec<NodeId>,
pub slot: Option<NodeId>,
}
Expand description
A shadow tree reference inside of a tree. This tree is isolated from the main tree.
Fields§
§shadow_roots: Vec<NodeId>
The root of the shadow tree
slot: Option<NodeId>
The node that children of the super tree should be inserted under.
Trait Implementations§
Source§impl Clone for ShadowTree
impl Clone for ShadowTree
Source§fn clone(&self) -> ShadowTree
fn clone(&self) -> ShadowTree
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Component for ShadowTree
impl Component for ShadowTree
Source§type Tracking = Untracked
type Tracking = Untracked
Specify what this storage should track.
Can be one of:
track::Untracked
, track::Insertion
, track::Modification
, track::Removal
, track::All
.Source§impl Debug for ShadowTree
impl Debug for ShadowTree
Source§impl PartialEq for ShadowTree
impl PartialEq for ShadowTree
impl Eq for ShadowTree
impl StructuralPartialEq for ShadowTree
Auto Trait Implementations§
impl Freeze for ShadowTree
impl RefUnwindSafe for ShadowTree
impl Send for ShadowTree
impl Sync for ShadowTree
impl Unpin for ShadowTree
impl UnwindSafe for ShadowTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> TupleAddComponent for T
impl<T> TupleAddComponent for T
Source§fn add_component(self, all_storages: &mut AllStorages, entity: EntityId)
fn add_component(self, all_storages: &mut AllStorages, entity: EntityId)
See [
World::add_entity
], [World::add_component
], AllStorages::add_entity
and AllStorages::add_component
.Source§impl<T> TupleDelete for T
impl<T> TupleDelete for T
Source§fn delete(all_storages: &mut AllStorages, entity: EntityId) -> bool
fn delete(all_storages: &mut AllStorages, entity: EntityId) -> bool
See [
World::delete_component
] and AllStorages::delete_component
.Source§impl<T> TupleRemove for T
impl<T> TupleRemove for T
type Out = (Option<T>,)
Source§fn remove(
all_storages: &mut AllStorages,
entity: EntityId,
) -> <T as TupleRemove>::Out
fn remove( all_storages: &mut AllStorages, entity: EntityId, ) -> <T as TupleRemove>::Out
Trait used as bound for [
World::remove
] and AllStorages::remove
.