pub trait IntoDynNode<'a, A = ()> {
    // Required method
    fn into_vnode(self, cx: &'a ScopeState) -> DynamicNode<'a>;
}
Expand description

A trait that allows various items to be converted into a dynamic node for the rsx macro

Required Methods§

source

fn into_vnode(self, cx: &'a ScopeState) -> DynamicNode<'a>

Consume this item along with a scopestate and produce a DynamicNode

You can use the bump alloactor of the scopestate to creat the dynamic node

Implementations on Foreign Types§

source§

impl<'b> IntoDynNode<'b, ()> for Arguments<'_>

source§

fn into_vnode(self, cx: &'b ScopeState) -> DynamicNode<'b>

source§

impl IntoDynNode<'_, ()> for String

source§

impl<'a, T: IntoDynNode<'a>> IntoDynNode<'a, ()> for Option<T>

source§

fn into_vnode(self, _cx: &'a ScopeState) -> DynamicNode<'a>

source§

impl<'a> IntoDynNode<'a, ()> for ()

source§

fn into_vnode(self, _cx: &'a ScopeState) -> DynamicNode<'a>

source§

impl<'a, 'b> IntoDynNode<'b, ()> for &'a str

source§

fn into_vnode(self, cx: &'b ScopeState) -> DynamicNode<'b>

Implementors§

source§

impl<'a> IntoDynNode<'a, ()> for &'a VNode<'a>

source§

impl<'a> IntoDynNode<'a, ()> for &Element<'a>

source§

impl<'a> IntoDynNode<'a, ()> for DynamicNode<'a>

source§

impl<'a> IntoDynNode<'a, ()> for VNode<'a>

source§

impl<'a, 'b> IntoDynNode<'a, ()> for LazyNodes<'a, 'b>