pub struct ChildrenRenderer<T> { /* private fields */ }
Expand description
A type used for rendering children html.
Implementationsยง
Sourceยงimpl<T> ChildrenRenderer<T>where
T: Clone,
impl<T> ChildrenRenderer<T>where
T: Clone,
Sourcepub fn new(children: Vec<T>) -> ChildrenRenderer<T>
pub fn new(children: Vec<T>) -> ChildrenRenderer<T>
Create children
Sourcepub fn map<OUT>(&self, closure: impl FnOnce(&ChildrenRenderer<T>) -> OUT) -> OUTwhere
OUT: Default,
pub fn map<OUT>(&self, closure: impl FnOnce(&ChildrenRenderer<T>) -> OUT) -> OUTwhere
OUT: Default,
Convert the children elements to another object (if there are any).
children.map(|children| {
html! {
<div class={classes!("container")}>
{children}
</div>
}
})
Trait Implementationsยง
Sourceยงimpl<T> Clone for ChildrenRenderer<T>where
T: Clone,
impl<T> Clone for ChildrenRenderer<T>where
T: Clone,
Sourceยงfn clone(&self) -> ChildrenRenderer<T>
fn clone(&self) -> ChildrenRenderer<T>
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl<T> Debug for ChildrenRenderer<T>
impl<T> Debug for ChildrenRenderer<T>
Sourceยงimpl<T> Default for ChildrenRenderer<T>
impl<T> Default for ChildrenRenderer<T>
Sourceยงfn default() -> ChildrenRenderer<T>
fn default() -> ChildrenRenderer<T>
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<COMP> From<ChildrenRenderer<VChild<COMP>>> for ChildrenRenderer<VNode>where
COMP: BaseComponent,
impl<COMP> From<ChildrenRenderer<VChild<COMP>>> for ChildrenRenderer<VNode>where
COMP: BaseComponent,
Sourceยงfn from(value: ChildrenRenderer<VChild<COMP>>) -> ChildrenRenderer<VNode>
fn from(value: ChildrenRenderer<VChild<COMP>>) -> ChildrenRenderer<VNode>
Converts to this type from the input type.
Sourceยงimpl<T> IntoIterator for ChildrenRenderer<T>
impl<T> IntoIterator for ChildrenRenderer<T>
Sourceยงtype IntoIter = IntoIter<<ChildrenRenderer<T> as IntoIterator>::Item>
type IntoIter = IntoIter<<ChildrenRenderer<T> as IntoIterator>::Item>
Which kind of iterator are we turning this into?
Sourceยงfn into_iter(self) -> <ChildrenRenderer<T> as IntoIterator>::IntoIter
fn into_iter(self) -> <ChildrenRenderer<T> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Sourceยงimpl<T, C> IntoPropValue<ChildrenRenderer<C>> for VChild<T>
impl<T, C> IntoPropValue<ChildrenRenderer<C>> for VChild<T>
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<C>
fn into_prop_value(self) -> ChildrenRenderer<C>
Convert
self
to a value of a Properties
struct.Sourceยงimpl<T, R> IntoPropValue<ChildrenRenderer<R>> for Vec<T>
impl<T, R> IntoPropValue<ChildrenRenderer<R>> for Vec<T>
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<R>
fn into_prop_value(self) -> ChildrenRenderer<R>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for &str
impl IntoPropValue<ChildrenRenderer<VNode>> for &str
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for Arc<String>
impl IntoPropValue<ChildrenRenderer<VNode>> for Arc<String>
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for Arc<str>
impl IntoPropValue<ChildrenRenderer<VNode>> for Arc<str>
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for Cow<'_, str>
impl IntoPropValue<ChildrenRenderer<VNode>> for Cow<'_, str>
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for IString
impl IntoPropValue<ChildrenRenderer<VNode>> for IString
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for Rc<String>
impl IntoPropValue<ChildrenRenderer<VNode>> for Rc<String>
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for Rc<str>
impl IntoPropValue<ChildrenRenderer<VNode>> for Rc<str>
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for String
impl IntoPropValue<ChildrenRenderer<VNode>> for String
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for VNode
impl IntoPropValue<ChildrenRenderer<VNode>> for VNode
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for VText
impl IntoPropValue<ChildrenRenderer<VNode>> for VText
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for bool
impl IntoPropValue<ChildrenRenderer<VNode>> for bool
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for char
impl IntoPropValue<ChildrenRenderer<VNode>> for char
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for f32
impl IntoPropValue<ChildrenRenderer<VNode>> for f32
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for f64
impl IntoPropValue<ChildrenRenderer<VNode>> for f64
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for i128
impl IntoPropValue<ChildrenRenderer<VNode>> for i128
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for i16
impl IntoPropValue<ChildrenRenderer<VNode>> for i16
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for i32
impl IntoPropValue<ChildrenRenderer<VNode>> for i32
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for i64
impl IntoPropValue<ChildrenRenderer<VNode>> for i64
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for i8
impl IntoPropValue<ChildrenRenderer<VNode>> for i8
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for isize
impl IntoPropValue<ChildrenRenderer<VNode>> for isize
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for u128
impl IntoPropValue<ChildrenRenderer<VNode>> for u128
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for u16
impl IntoPropValue<ChildrenRenderer<VNode>> for u16
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for u32
impl IntoPropValue<ChildrenRenderer<VNode>> for u32
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for u64
impl IntoPropValue<ChildrenRenderer<VNode>> for u64
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for u8
impl IntoPropValue<ChildrenRenderer<VNode>> for u8
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl IntoPropValue<ChildrenRenderer<VNode>> for usize
impl IntoPropValue<ChildrenRenderer<VNode>> for usize
Sourceยงfn into_prop_value(self) -> ChildrenRenderer<VNode>
fn into_prop_value(self) -> ChildrenRenderer<VNode>
Convert
self
to a value of a Properties
struct.Sourceยงimpl<T> PartialEq for ChildrenRenderer<T>where
T: PartialEq,
impl<T> PartialEq for ChildrenRenderer<T>where
T: PartialEq,
Auto Trait Implementationsยง
impl<T> Freeze for ChildrenRenderer<T>
impl<T> RefUnwindSafe for ChildrenRenderer<T>where
T: RefUnwindSafe,
impl<T> Send for ChildrenRenderer<T>where
T: Send,
impl<T> Sync for ChildrenRenderer<T>where
T: Sync,
impl<T> Unpin for ChildrenRenderer<T>where
T: Unpin,
impl<T> UnwindSafe for ChildrenRenderer<T>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Sourceยงfn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Sourceยงimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Sourceยงfn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.Sourceยงimpl<T> IntoPropValue<VNode> for Twhere
T: ToHtml,
impl<T> IntoPropValue<VNode> for Twhere
T: ToHtml,
Sourceยงfn into_prop_value(self) -> VNode
fn into_prop_value(self) -> VNode
Convert
self
to a value of a Properties
struct.