pub struct ExprContext<'a> {
pub id: &'a str,
pub props: &'a Props,
pub vars: IndexMap<String, Value>,
}Expand description
What a template expression can see: the node id, its props, and the
$each loop variables (item, index, …).
Fields§
§id: &'a str§props: &'a Props§vars: IndexMap<String, Value>Trait Implementations§
Source§impl<'a> Clone for ExprContext<'a>
impl<'a> Clone for ExprContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExprContext<'a>
impl<'a> RefUnwindSafe for ExprContext<'a>
impl<'a> Send for ExprContext<'a>
impl<'a> Sync for ExprContext<'a>
impl<'a> Unpin for ExprContext<'a>
impl<'a> UnsafeUnpin for ExprContext<'a>
impl<'a> UnwindSafe for ExprContext<'a>
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