pub struct TemplateDecl {
pub name: String,
pub params: Vec<String>,
pub body: Node,
}Expand description
A pre-evaluation template declaration (issue #59).
(template (<name> <param>...) <body>) records a reusable link shape;
later (<name> arg...) uses are expanded before they reach eval_node.
Fields§
§name: String§params: Vec<String>§body: NodeTrait Implementations§
Source§impl Clone for TemplateDecl
impl Clone for TemplateDecl
Source§fn clone(&self) -> TemplateDecl
fn clone(&self) -> TemplateDecl
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 moreAuto Trait Implementations§
impl Freeze for TemplateDecl
impl RefUnwindSafe for TemplateDecl
impl Send for TemplateDecl
impl Sync for TemplateDecl
impl Unpin for TemplateDecl
impl UnsafeUnpin for TemplateDecl
impl UnwindSafe for TemplateDecl
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