pub struct VecNode { /* private fields */ }Expand description
Renders a sequence of child nodes and concatenates their output.
This is produced from string templates after splitting literal text,
{...} expressions, and {% ... %} statements. For example,
"Hello {name}" becomes a VecNode containing a literal "Hello " and a
RuleCallNode for name.
Implementations§
Trait Implementations§
Source§impl TextGeneratorNode for VecNode
impl TextGeneratorNode for VecNode
Source§fn generate_text(
&self,
state: &mut RenderState<'_>,
) -> Result<String, RenderError>
fn generate_text( &self, state: &mut RenderState<'_>, ) -> Result<String, RenderError>
Generates text using the supplied render state.
Auto Trait Implementations§
impl Freeze for VecNode
impl !RefUnwindSafe for VecNode
impl !Send for VecNode
impl !Sync for VecNode
impl Unpin for VecNode
impl UnsafeUnpin for VecNode
impl !UnwindSafe for VecNode
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