pub struct Js { /* private fields */ }Expand description
JavaScript source and captured values for a runtime expression.
Captured Rust values are serialized into the source. Embedding it in a view escapes it for the surrounding HTML context.
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