MetadataElement

Struct MetadataElement 

Source
pub struct MetadataElement(/* private fields */);

Implementations§

Source§

impl MetadataElement

Source

pub fn new() -> Self

Source

pub fn future<F>(self, f: impl FnOnce(&Element) -> F) -> Self
where F: 'static + Future<Output = ()>,

Source

pub fn attribute<T>(self, name: impl Into<Cow<'static, str>>, value: T) -> Self

Source

pub fn attribute_signal<T, S>( self, name: impl Into<Cow<'static, str>>, value: S, ) -> Self
where T: IntoAttributeValue, S: 'static + Unpin + Signal<Item = T>,

Source

pub fn class<T>(self, value: T) -> Self

Source

pub fn class_signal<S, T>(self, value: S) -> Self
where S: 'static + Unpin + Signal<Item = T>, T: IntoOptionStringValue,

Source

pub fn style<T>(self, name: impl Into<Cow<'static, str>>, value: T) -> Self

Source

pub fn style_signal<S, T>( self, name: impl Into<Cow<'static, str>>, value: S, ) -> Self
where S: 'static + Unpin + Signal<Item = T>, T: IntoOptionStringValue,

Source

pub fn event( self, name: impl Into<Cow<'static, str>>, closure: impl 'static + FnMut(JsValue), ) -> Self

Source

pub fn child<T>(self, child: T) -> Self
where T: Into<Node>,

Source

pub fn children<T, I>(self, children: I) -> Self
where T: Into<Node>, I: IntoIterator<Item = T>,

Source

pub fn child_signal<T, S>(self, signal: S) -> Self
where T: Into<Node>, S: 'static + Unpin + Signal<Item = T>,

Source

pub fn child_signal_vec<T, S>(self, signal_vec: S) -> Self
where T: Into<Node>, S: 'static + Unpin + SignalVec<Item = T>,

Source

pub fn inner_html(self, value: impl IntoStringValue) -> Self

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.