pub struct RuleCallNode { /* private fields */ }Expand description
Calls another named rule, or reuses a bound/context value with the same name.
This is the node generated for {rule} template expressions. Resolution
order is:
- return an existing bound value from the render context;
- render and cache a lazy
contextdefault, if one exists; - render the named rule from
RuleSet.
Implementations§
Trait Implementations§
Source§impl TextGeneratorNode for RuleCallNode
impl TextGeneratorNode for RuleCallNode
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 RuleCallNode
impl RefUnwindSafe for RuleCallNode
impl Send for RuleCallNode
impl Sync for RuleCallNode
impl Unpin for RuleCallNode
impl UnsafeUnpin for RuleCallNode
impl UnwindSafe for RuleCallNode
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