pub struct TemplateList { /* private fields */ }
Expand description
A SignalVec
of TemplateResult
s.
Trait Implementations§
Source§impl Clone for TemplateList
impl Clone for TemplateList
Source§fn clone(&self) -> TemplateList
fn clone(&self) -> TemplateList
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 From<SignalVec<TemplateResult>> for TemplateList
impl From<SignalVec<TemplateResult>> for TemplateList
Source§fn from(templates: SignalVec<TemplateResult>) -> Self
fn from(templates: SignalVec<TemplateResult>) -> Self
Converts to this type from the input type.
Source§impl Render for TemplateList
impl Render for TemplateList
Source§fn render(&self) -> Node
fn render(&self) -> Node
Called during the initial render when creating the DOM nodes. Should return a
Node
.Source§fn update_node(&self, parent: &Node, node: &Node) -> Node
fn update_node(&self, parent: &Node, node: &Node) -> Node
Called when the node should be updated with new state.
The default implementation of this will replace the child node completely with the result of calling
render
again.
Another implementation might be better suited to some specific types.
For example, text nodes can simply replace the inner text instead of recreating a new node. Read moreAuto Trait Implementations§
impl Freeze for TemplateList
impl !RefUnwindSafe for TemplateList
impl !Send for TemplateList
impl !Sync for TemplateList
impl Unpin for TemplateList
impl !UnwindSafe for TemplateList
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