pub struct ControlBranch {
pub header: Span,
pub body: Vec<Node>,
}Expand description
One branch of a control region: its header action ({{ if … }},
{{ else }}, …) and the nodes emitted while the branch was active.
Fields§
§header: SpanTemplate action that opens this branch.
body: Vec<Node>CST nodes emitted while this branch is active.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ControlBranch
impl RefUnwindSafe for ControlBranch
impl Send for ControlBranch
impl Sync for ControlBranch
impl Unpin for ControlBranch
impl UnsafeUnpin for ControlBranch
impl UnwindSafe for ControlBranch
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