Struct concoct_web::html::Html
source · pub struct Html<C> { /* private fields */ }Implementations§
source§impl<C> Html<C>
impl<C> Html<C>
pub fn new(tag: impl Into<Cow<'static, str>>, child: C) -> Self
pub fn attr( self, name: impl Into<Cow<'static, str>>, value: impl Into<Cow<'static, str>> ) -> Self
pub fn handler( self, name: impl Into<Cow<'static, str>>, handler: impl FnMut(Event) + 'static ) -> Self
pub fn on_click(self, handler: impl FnMut(Event) + 'static) -> Self
pub fn on_input(self, handler: impl FnMut(Event) + 'static) -> Self
pub fn on_submit(self, handler: impl FnMut(Event) + 'static) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<C> !RefUnwindSafe for Html<C>
impl<C> !Send for Html<C>
impl<C> !Sync for Html<C>
impl<C> Unpin for Html<C>
impl<C> !UnwindSafe for Html<C>
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