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§

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§

§

impl IntoDynNode<'_> for String

§

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

§

impl<'a> IntoDynNode<'a> for &Option<VNode<'a>>

§

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

§

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

§

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

§

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

§

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

§

impl<'a, T> IntoDynNode<'a> for Option<T>where T: IntoDynNode<'a>,

§

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

§

impl<'b> IntoDynNode<'b> for Arguments<'_>

§

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

Implementors§

§

impl<'a> IntoDynNode<'a> for &'a VNode<'a>

§

impl<'a> IntoDynNode<'a> for VNode<'a>

§

impl<'a> IntoDynNode<'a> for DynamicNode<'a>

§

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

§

impl<'a, T, I> IntoDynNode<'a, FromNodeIterator> for Twhere T: Iterator<Item = I>, I: IntoTemplate<'a>,