Struct dioxus_native_core::tree::ShadowTree
source · 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
§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<ShadowTree> for ShadowTree
impl PartialEq<ShadowTree> for ShadowTree
source§fn eq(&self, other: &ShadowTree) -> bool
fn eq(&self, other: &ShadowTree) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ShadowTree
impl StructuralEq for ShadowTree
impl StructuralPartialEq for ShadowTree
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<T> TupleAddComponent for Twhere
T: Send + Sync + Component,
<T as Component>::Tracking: Send + Sync,
impl<T> TupleAddComponent for Twhere T: Send + Sync + Component, <T as Component>::Tracking: Send + Sync,
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 Twhere
T: Send + Sync + Component,
<T as Component>::Tracking: Send + Sync,
impl<T> TupleDelete for Twhere T: Send + Sync + Component, <T as Component>::Tracking: Send + Sync,
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 Twhere
T: Send + Sync + Component,
<T as Component>::Tracking: Send + Sync,
impl<T> TupleRemove for Twhere T: Send + Sync + Component, <T as Component>::Tracking: Send + Sync,
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.