pub(crate) enum Region {
If {
branches: Vec<(Rc<Expr>, Templates<Interpreter>)>,
otherwise: Templates<Interpreter>,
},
For {
head: Rc<Loop>,
body: Templates<Interpreter>,
},
View {
view: ViewId,
args: Rc<[Expr]>,
},
}Variants§
If
Shows the first branch whose condition holds, or else otherwise.
For
Shows body once per time round the loop, with the loop’s variables set.
View
Shows the view’s body, with the arguments as its parameters.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Region
impl !Sync for Region
impl Freeze for Region
impl RefUnwindSafe for Region
impl Unpin for Region
impl UnsafeUnpin for Region
impl UnwindSafe for Region
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