pub struct ElementBuilder<Tag, Attributes, Children> { /* private fields */ }Expand description
A typed element view.
Implementations§
Source§impl<Tag, Attributes, Children> ElementBuilder<Tag, Attributes, Children>
impl<Tag, Attributes, Children> ElementBuilder<Tag, Attributes, Children>
Sourcepub fn attribute<AttributeView>(
self,
attr: AttributeView,
) -> ElementBuilder<Tag, (Attributes, AttributeView), Children>
pub fn attribute<AttributeView>( self, attr: AttributeView, ) -> ElementBuilder<Tag, (Attributes, AttributeView), Children>
Append one attribute view.
Sourcepub fn child<Child, Marker>(
self,
child: Child,
) -> ElementBuilder<Tag, Attributes, (Children, <Child as IntoViewChild<Marker>>::Output)>where
Child: IntoViewChild<Marker>,
pub fn child<Child, Marker>(
self,
child: Child,
) -> ElementBuilder<Tag, Attributes, (Children, <Child as IntoViewChild<Marker>>::Output)>where
Child: IntoViewChild<Marker>,
Append one child.
Trait Implementations§
Source§impl<Tag, Attributes, Children> AttributeBuilderTarget for ElementBuilder<Tag, Attributes, Children>
impl<Tag, Attributes, Children> AttributeBuilderTarget for ElementBuilder<Tag, Attributes, Children>
Source§type Output = ElementBuilder<Tag, (Attributes, DynamicAttributesBuilder), Children>
type Output = ElementBuilder<Tag, (Attributes, DynamicAttributesBuilder), Children>
The target returned after adding the attribute.
Source§fn append_attribute(self, attr: Attribute) -> Self::Output
fn append_attribute(self, attr: Attribute) -> Self::Output
Append one fully constructed attribute.
Source§impl<Tag: ElementTag, Attributes: View, Children: View> View for ElementBuilder<Tag, Attributes, Children>
impl<Tag: ElementTag, Attributes: View, Children: View> View for ElementBuilder<Tag, Attributes, Children>
Source§fn push(self, dynamic: &mut DynamicValues)
fn push(self, dynamic: &mut DynamicValues)
Push runtime dynamic nodes and attributes in template order.
Source§impl<Tag: ElementTag, Attributes: ViewTemplate, Children: ViewTemplate> ViewTemplate for ElementBuilder<Tag, Attributes, Children>
impl<Tag: ElementTag, Attributes: ViewTemplate, Children: ViewTemplate> ViewTemplate for ElementBuilder<Tag, Attributes, Children>
Source§const TEMPLATE_TREE: &'static TemplateRawTree
const TEMPLATE_TREE: &'static TemplateRawTree
The static tree for this view type.
Auto Trait Implementations§
impl<Tag, Attributes, Children> Freeze for ElementBuilder<Tag, Attributes, Children>
impl<Tag, Attributes, Children> RefUnwindSafe for ElementBuilder<Tag, Attributes, Children>
impl<Tag, Attributes, Children> Send for ElementBuilder<Tag, Attributes, Children>
impl<Tag, Attributes, Children> Sync for ElementBuilder<Tag, Attributes, Children>
impl<Tag, Attributes, Children> Unpin for ElementBuilder<Tag, Attributes, Children>
impl<Tag, Attributes, Children> UnsafeUnpin for ElementBuilder<Tag, Attributes, Children>
impl<Tag, Attributes, Children> UnwindSafe for ElementBuilder<Tag, Attributes, Children>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<V> IntoViewChild for Vwhere
V: View,
impl<V> IntoViewChild for Vwhere
V: View,
Source§fn into_child(self) -> <V as IntoViewChild>::Output
fn into_child(self) -> <V as IntoViewChild>::Output
Convert into the child view.
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.
Source§impl<V> ViewExt for Vwhere
V: View,
impl<V> ViewExt for Vwhere
V: View,
Source§fn into_vnode(self) -> VNode
fn into_vnode(self) -> VNode
Convert this view into a
VNode.