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.
Source§fn generate_unique_text(
&self,
rule_name: &str,
_state: &mut RenderState<'_>,
) -> Result<String, RenderError>
fn generate_unique_text( &self, rule_name: &str, _state: &mut RenderState<'_>, ) -> Result<String, RenderError>
Generates text for a strict unique call to
rule_name.Auto Trait Implementations§
impl !RefUnwindSafe for VecNode
impl !Send for VecNode
impl !Sync for VecNode
impl !UnwindSafe for VecNode
impl Freeze for VecNode
impl Unpin for VecNode
impl UnsafeUnpin 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