[][src]Struct yew::html::ChildrenRenderer

pub struct ChildrenRenderer<T> { /* fields omitted */ }

A type used for rendering children html.

Methods

impl<T> ChildrenRenderer<T>[src]

pub fn new(len: usize, boxed_render: Box<dyn Fn() -> Vec<T>>) -> Self[src]

Create children

pub fn is_empty(&self) -> bool[src]

Children list is empty

pub fn len(&self) -> usize[src]

Number of children elements

pub fn to_vec(&self) -> Vec<T>[src]

Build children components and return Vec

pub fn iter(&self) -> impl Iterator<Item = T>[src]

Render children components and return Iterator

Trait Implementations

impl<T, COMP: Component> Renderable<COMP> for ChildrenRenderer<T> where
    T: Into<VNode<COMP>>, 
[src]

impl<T> Default for ChildrenRenderer<T>[src]

impl<T> Debug for ChildrenRenderer<T>[src]

Auto Trait Implementations

impl<T> !Send for ChildrenRenderer<T>

impl<T> !Sync for ChildrenRenderer<T>

impl<T> Unpin for ChildrenRenderer<T>

impl<T> !UnwindSafe for ChildrenRenderer<T>

impl<T> !RefUnwindSafe for ChildrenRenderer<T>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: Any
[src]