freya_native_core::dioxus

Trait NodeImmutableDioxusExt

Source
pub trait NodeImmutableDioxusExt<V: FromAnyValue + Send + Sync>: NodeImmutable<V> {
    // Provided method
    fn mounted_id(&self) -> Option<ElementId> { ... }
}
Expand description

A trait that extends the NodeImmutable trait with methods that are useful for dioxus.

Provided Methods§

Source

fn mounted_id(&self) -> Option<ElementId>

Returns the id of the element that this node is mounted to. Not all nodes are mounted to an element, only nodes with dynamic content that have been renderered will have an id.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§