pub enum PropArg {
Expr(Expr),
Element(TeksiElement),
Escape(Expr),
Binding {
name: Ident,
element: TeksiElement,
},
}Expand description
A property argument. Expr and Element both emit .prop_name(...);
Escape and Binding force the _id slot suffix per spec §A.3 and
hoist the binding when present.
Variants§
Expr(Expr)
A plain Rust expression (scalars, closures, method calls).
Element(TeksiElement)
An embedded teksu element — tab: "name", Card { ... }.
Escape(Expr)
#{ expr } — a WidgetId expression that routes to .prop_id.
Binding
name = Element — hoists let name = ctx.add(...) and routes
to .prop_id(name).
Auto Trait Implementations§
impl !Send for PropArg
impl !Sync for PropArg
impl Freeze for PropArg
impl RefUnwindSafe for PropArg
impl Unpin for PropArg
impl UnsafeUnpin for PropArg
impl UnwindSafe for PropArg
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