pub enum JsExpr<'a> {
Src(&'a str),
Num(usize),
StrLit(VStr<'a>),
Simple(VStr<'a>, StaticLevel),
Param(Name<'a>),
Compound(Vec<JsExpr<'a>>),
Props(Vec<Prop<'a>>),
Call(RuntimeHelper, Vec<JsExpr<'a>>),
Symbol(RuntimeHelper),
Array(Vec<JsExpr<'a>>),
}
Variants§
Src(&'a str)
Source. output to generated code as is.
Num(usize)
representing a number, either id or key
StrLit(VStr<'a>)
String Literal. output after quoted, used by attr/static arg.
Simple(VStr<'a>, StaticLevel)
non-string js expression, will be processed like prefixing
Param(Name<'a>)
variable in parameter
Compound(Vec<JsExpr<'a>>)
alternative to join string as JsExpr
Props(Vec<Prop<'a>>)
Call(RuntimeHelper, Vec<JsExpr<'a>>)
for calling runtime helper, e.g. resolveComponent()
Symbol(RuntimeHelper)
for builtin component called as symbol
Array(Vec<JsExpr<'a>>)
array of JsExpr
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for JsExpr<'a>
impl<'a> RefUnwindSafe for JsExpr<'a>
impl<'a> Send for JsExpr<'a>
impl<'a> Sync for JsExpr<'a>
impl<'a> Unpin for JsExpr<'a>
impl<'a> UnwindSafe for JsExpr<'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