pub struct GroupNode {
pub span: Span,
pub delimiter: Delimiter,
pub body: Box<Template>,
}Expand description
A delimited group in a zyn template: (...), [...], or {...}.
The body is expanded recursively and wrapped in the appropriate delimiter.
Fields§
§span: SpanSource span.
delimiter: DelimiterThe delimiter kind: parenthesis, bracket, or brace.
body: Box<Template>The template body inside the delimiters.
Implementations§
Source§impl GroupNode
impl GroupNode
pub fn span(&self) -> Span
pub fn to_display_stream( &self, injections: &[(String, TokenStream)], ) -> TokenStream
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GroupNode
impl RefUnwindSafe for GroupNode
impl !Send for GroupNode
impl !Sync for GroupNode
impl Unpin for GroupNode
impl UnsafeUnpin for GroupNode
impl UnwindSafe for GroupNode
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