[−][src]Struct yew::html::ChildrenRenderer
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]
T: Into<VNode<COMP>>,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: Any,
[src]
T: Any,