pub struct Js { /* private fields */ }Expand description
The JavaScript source of a runtime expression, captured at its $(..)
site.
The expr! macro builds one of these next to the expression’s Rust
value: the source as it reaches the browser, with the values captured
from the surrounding Rust scope serialized in place. Nothing is written
until the expression is spliced into a view, where the source renders
inside a marker comment.
Implementations§
Trait Implementations§
Source§impl AttributeValueViewParts for Js
The source as the value of a data-topcoat-* attribute, like an event
handler or a bind expression.
impl AttributeValueViewParts for Js
The source as the value of a data-topcoat-* attribute, like an event
handler or a bind expression.
Source§fn attribute_present(&self) -> bool
fn attribute_present(&self) -> bool
Returns whether the containing attribute should be rendered. Read more
Source§fn into_view_parts(self, _cx: &Cx, parts: &mut PartsWriter<'_>)
fn into_view_parts(self, _cx: &Cx, parts: &mut PartsWriter<'_>)
Appends this attribute value to the view being built.
Auto Trait Implementations§
impl Freeze for Js
impl RefUnwindSafe for Js
impl Send for Js
impl Sync for Js
impl Unpin for Js
impl UnsafeUnpin for Js
impl UnwindSafe for Js
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