Trait freya_native_core::real_dom::NodeImmutable
source · pub trait NodeImmutable<V: FromAnyValue + Send + Sync = ()>: Sized {
// Required methods
fn real_dom(&self) -> &RealDom<V>;
fn id(&self) -> NodeId;
// Provided methods
fn node_type(&self) -> ViewEntry<'_, NodeType<V>> { ... }
fn get<'a, T: Component + Sync + Send>(&'a self) -> Option<ViewEntry<'a, T>> { ... }
fn children_ids_advanced(
&self,
id: NodeId,
enter_shadow_dom: bool
) -> Vec<NodeId> { ... }
fn child_ids(&self) -> Vec<NodeId> { ... }
fn children(&self) -> Vec<NodeRef<'_, V>> { ... }
fn parent_id(&self) -> Option<NodeId> { ... }
fn parent(&self) -> Option<NodeRef<'_, V>> { ... }
fn height(&self) -> u16 { ... }
}
Expand description
A immutable view of a node
Required Methods§
Provided Methods§
sourcefn get<'a, T: Component + Sync + Send>(&'a self) -> Option<ViewEntry<'a, T>>
fn get<'a, T: Component + Sync + Send>(&'a self) -> Option<ViewEntry<'a, T>>
Get a component from the current node
Object Safety§
This trait is not object safe.