Struct next_rs::prelude::rsx::ChildrenRenderer
source ยท 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 copy 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>
ยง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,
sourceยงfn eq(&self, other: &ChildrenRenderer<T>) -> bool
fn eq(&self, other: &ChildrenRenderer<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.Auto Trait Implementationsยง
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
ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
ยง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.