pub enum TemplatePartNode {
Literal {
text: &'static str,
ws: WsPolicy,
},
Capture {
child: u32,
field_index: Option<u16>,
name: Option<&'static str>,
},
}Expand description
One part of a template, in plan form.
Variants§
Literal
A literal match.
Capture
A capture whose value comes from the child plan node. field_index is the
position in the resulting record/tuple (None for single-capture scalars).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TemplatePartNode
impl RefUnwindSafe for TemplatePartNode
impl Send for TemplatePartNode
impl Sync for TemplatePartNode
impl Unpin for TemplatePartNode
impl UnsafeUnpin for TemplatePartNode
impl UnwindSafe for TemplatePartNode
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