pub struct MetadataElement(/* private fields */);Implementations§
Source§impl MetadataElement
impl MetadataElement
pub fn new() -> Self
pub fn future<F>(self, f: impl FnOnce(&Element) -> F) -> Self
pub fn attribute<T>(self, name: impl Into<Cow<'static, str>>, value: T) -> Selfwhere
T: IntoAttributeValue,
pub fn attribute_signal<T, S>( self, name: impl Into<Cow<'static, str>>, value: S, ) -> Self
pub fn class<T>(self, value: T) -> Selfwhere
T: IntoOptionStringValue,
pub fn class_signal<S, T>(self, value: S) -> Self
pub fn style<T>(self, name: impl Into<Cow<'static, str>>, value: T) -> Selfwhere
T: IntoOptionStringValue,
pub fn style_signal<S, T>( self, name: impl Into<Cow<'static, str>>, value: S, ) -> Self
pub fn event( self, name: impl Into<Cow<'static, str>>, closure: impl 'static + FnMut(JsValue), ) -> Self
pub fn child<T>(self, child: T) -> Self
pub fn children<T, I>(self, children: I) -> Self
pub fn child_signal<T, S>(self, signal: S) -> Self
pub fn child_signal_vec<T, S>(self, signal_vec: S) -> Self
pub fn inner_html(self, value: impl IntoStringValue) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetadataElement
impl RefUnwindSafe for MetadataElement
impl Send for MetadataElement
impl Sync for MetadataElement
impl Unpin for MetadataElement
impl UnwindSafe for MetadataElement
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