pub struct Tag<T: TagType = TagTypeDefault> { /* private fields */ }Implementations§
Source§impl<T> Tag<T>where
T: TagType,
impl<T> Tag<T>where
T: TagType,
pub fn to_vnode(self) -> VNode
pub fn class(self, class: impl Into<AttrValue>) -> Self
pub fn id(self, id: impl Into<AttrValue>) -> Self
pub fn style(self, style: impl Into<AttrValue>) -> Self
pub fn attr(self, key: &'static str, attr: impl Into<AttrValue>) -> Self
pub fn key(self, key: impl Into<Key>) -> Self
pub fn append(self, node: impl Into<VNode>) -> Self
pub fn append_all( self, nodes: impl IntoIterator<Item = impl Into<VNode>>, ) -> Self
pub fn text(self, text: impl Into<AttrValue>) -> Self
pub fn node_ref(self, node_ref: NodeRef) -> Self
Source§impl<T> Tag<T>where
T: TagType,
impl<T> Tag<T>where
T: TagType,
pub fn onabort(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onauxclick(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onblur(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn oncancel(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn oncanplay(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn oncanplaythrough(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onchange(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onclick(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onclose(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn oncuechange(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ondblclick(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ondrag(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ondragend(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ondragenter(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ondragexit(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ondragleave(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ondragover(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ondragstart(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ondrop(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ondurationchange(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onemptied(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onended(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onerror(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onfocus(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onfocusin(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onfocusout(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onformdata(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn oninput(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn oninvalid(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onkeydown(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onkeypress(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onkeyup(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onload(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onloadeddata(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onloadedmetadata(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onloadstart(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onmousedown(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onmouseenter(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onmouseleave(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onmousemove(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onmouseout(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onmouseover(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onmouseup(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onpause(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onplay(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onplaying(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onprogress(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onratechange(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onreset(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onresize(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onscroll(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onsecuritypolicyviolation( self, listener: impl IntoEventCallback<Event>, ) -> Self
pub fn onseeked(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onseeking(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onselect(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onslotchange(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onstalled(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onsubmit(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onsuspend(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ontimeupdate(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ontoggle(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onvolumechange(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onwaiting(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onwheel(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn oncopy(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn oncut(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onpaste(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onanimationcancel(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onanimationend(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onanimationiteration( self, listener: impl IntoEventCallback<Event>, ) -> Self
pub fn onanimationstart(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ongotpointercapture( self, listener: impl IntoEventCallback<Event>, ) -> Self
pub fn onloadend(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onlostpointercapture( self, listener: impl IntoEventCallback<Event>, ) -> Self
pub fn onpointercancel(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onpointerdown(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onpointerenter(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onpointerleave(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onpointerlockchange( self, listener: impl IntoEventCallback<Event>, ) -> Self
pub fn onpointerlockerror(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onpointermove(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onpointerout(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onpointerover(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onpointerup(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onselectionchange(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onselectstart(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn onshow(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ontouchcancel(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ontouchend(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ontouchmove(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ontouchstart(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ontransitioncancel(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ontransitionend(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ontransitionrun(self, listener: impl IntoEventCallback<Event>) -> Self
pub fn ontransitionstart(self, listener: impl IntoEventCallback<Event>) -> Self
Source§impl Tag<TagTypeInput>
impl Tag<TagTypeInput>
pub fn checked(self, checked: bool) -> Self
pub fn value(self, value: impl IntoPropValue<Option<AttrValue>>) -> Self
pub fn type_checkbox(self) -> Self
pub fn type_color(self) -> Self
pub fn type_date(self) -> Self
pub fn type_datetime(self) -> Self
pub fn type_datetime_local(self) -> Self
pub fn type_email(self) -> Self
pub fn type_file(self) -> Self
pub fn type_image(self) -> Self
pub fn type_month(self) -> Self
pub fn type_number(self) -> Self
pub fn type_password(self) -> Self
pub fn type_radio(self) -> Self
pub fn type_range(self) -> Self
pub fn type_reset(self) -> Self
pub fn type_search(self) -> Self
pub fn type_submit(self) -> Self
pub fn type_tel(self) -> Self
pub fn type_text(self) -> Self
pub fn type_time(self) -> Self
pub fn type_url(self) -> Self
pub fn type_week(self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Tag<T>
impl<T = TagTypeDefault> !RefUnwindSafe for Tag<T>
impl<T = TagTypeDefault> !Send for Tag<T>
impl<T = TagTypeDefault> !Sync for Tag<T>
impl<T> Unpin for Tag<T>where
T: Unpin,
impl<T = TagTypeDefault> !UnwindSafe for Tag<T>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.