pub struct ElementBuilder { /* private fields */ }Implementations§
Source§impl ElementBuilder
impl ElementBuilder
pub fn new(tag: impl Into<Cow<'static, str>>) -> Self
pub fn attr( self, key: impl Into<Cow<'static, str>>, value: impl Into<AttributeValue>, ) -> Self
pub fn on( self, event: impl Into<Cow<'static, str>>, cb: impl Fn() + 'static, ) -> Self
pub fn on_obj( self, event: impl Into<Cow<'static, str>>, cb: impl Fn(Event) + 'static, ) -> Self
pub fn on_obj_rc( self, event: impl Into<Cow<'static, str>>, cb: Rc<dyn Fn(Event)>, ) -> Self
pub fn child(self, child: impl IntoView) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ElementBuilder
impl !Send for ElementBuilder
impl !Sync for ElementBuilder
impl !UnwindSafe for ElementBuilder
impl Freeze for ElementBuilder
impl Unpin for ElementBuilder
impl UnsafeUnpin for ElementBuilder
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