pub struct ShadowNode {
pub id: NodeId,
pub view_type: ViewType,
pub parent: Option<NodeId>,
pub children: Vec<NodeId>,
pub props: HashMap<String, PropValue>,
pub native_handle: Option<NativeHandle>,
pub component_name: Option<String>,
/* private fields */
}Expand description
A single node in the shadow tree.
Fields§
§id: NodeId§view_type: ViewType§parent: Option<NodeId>§children: Vec<NodeId>§props: HashMap<String, PropValue>§native_handle: Option<NativeHandle>§component_name: Option<String>Component name from React (for DevTools).
Trait Implementations§
Source§impl Clone for ShadowNode
impl Clone for ShadowNode
Source§fn clone(&self) -> ShadowNode
fn clone(&self) -> ShadowNode
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ShadowNode
impl RefUnwindSafe for ShadowNode
impl Send for ShadowNode
impl Sync for ShadowNode
impl Unpin for ShadowNode
impl UnsafeUnpin for ShadowNode
impl UnwindSafe for ShadowNode
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