pub struct VariableNode { /* private fields */ }Expand description
Looks up a previously bound variable in the current render context.
This node is useful when a template should require a value that was already
bound by a BindNode. In the current parser, normal {name} expressions use
RuleCallNode instead, because they can mean either a bound variable or a
named rule.
Implementations§
Trait Implementations§
Source§impl TextGeneratorNode for VariableNode
impl TextGeneratorNode for VariableNode
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 VariableNode
impl RefUnwindSafe for VariableNode
impl Send for VariableNode
impl Sync for VariableNode
impl Unpin for VariableNode
impl UnsafeUnpin for VariableNode
impl UnwindSafe for VariableNode
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