pub enum PropValue {
Static(StaticValue),
Hole(usize),
}Expand description
A prop’s value in a template: either a compile-time literal that travels as
data, or a numbered hole filled at runtime by the already-compiled
{expr} at that slot.
Holes are positional (index into the frame’s hole array) — that is all
hot reload needs, because the dev build recompiles the same source so the
hole order is stable. Name-based binding (what server-driven UI needs, so a
remote "onSave" can resolve to a compiled handler) is a documented future
extension, not built here.
Variants§
Static(StaticValue)
Hole(usize)
Trait Implementations§
impl StructuralPartialEq for PropValue
Auto Trait Implementations§
impl Freeze for PropValue
impl RefUnwindSafe for PropValue
impl Send for PropValue
impl Sync for PropValue
impl Unpin for PropValue
impl UnsafeUnpin for PropValue
impl UnwindSafe for PropValue
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