Tag

Struct Tag 

Source
pub struct Tag<T: TagType = TagTypeDefault> { /* private fields */ }

Implementations§

Source§

impl<T> Tag<T>
where T: TagType,

Source

pub fn to_vnode(self) -> VNode

Source

pub fn class(self, class: impl Into<AttrValue>) -> Self

Source

pub fn id(self, id: impl Into<AttrValue>) -> Self

Source

pub fn style(self, style: impl Into<AttrValue>) -> Self

Source

pub fn attr(self, key: &'static str, attr: impl Into<AttrValue>) -> Self

Source

pub fn key(self, key: impl Into<Key>) -> Self

Source

pub fn append(self, node: impl Into<VNode>) -> Self

Source

pub fn append_all( self, nodes: impl IntoIterator<Item = impl Into<VNode>>, ) -> Self

Source

pub fn text(self, text: impl Into<AttrValue>) -> Self

Source

pub fn node_ref(self, node_ref: NodeRef) -> Self

Source§

impl<T> Tag<T>
where T: TagType,

Source

pub fn onabort(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onauxclick(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onblur(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn oncancel(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn oncanplay(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn oncanplaythrough(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onchange(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onclick(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onclose(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn oncontextmenu(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn oncuechange(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ondblclick(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ondrag(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ondragend(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ondragenter(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ondragexit(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ondragleave(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ondragover(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ondragstart(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ondrop(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ondurationchange(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onemptied(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onended(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onerror(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onfocus(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onfocusin(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onfocusout(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onformdata(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn oninput(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn oninvalid(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onkeydown(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onkeypress(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onkeyup(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onload(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onloadeddata(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onloadedmetadata(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onloadstart(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onmousedown(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onmouseenter(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onmouseleave(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onmousemove(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onmouseout(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onmouseover(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onmouseup(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onpause(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onplay(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onplaying(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onprogress(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onratechange(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onreset(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onresize(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onscroll(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onsecuritypolicyviolation( self, listener: impl IntoEventCallback<Event>, ) -> Self

Source

pub fn onseeked(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onseeking(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onselect(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onslotchange(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onstalled(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onsubmit(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onsuspend(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ontimeupdate(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ontoggle(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onvolumechange(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onwaiting(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onwheel(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn oncopy(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn oncut(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onpaste(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onanimationcancel(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onanimationend(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onanimationiteration( self, listener: impl IntoEventCallback<Event>, ) -> Self

Source

pub fn onanimationstart(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ongotpointercapture( self, listener: impl IntoEventCallback<Event>, ) -> Self

Source

pub fn onloadend(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onlostpointercapture( self, listener: impl IntoEventCallback<Event>, ) -> Self

Source

pub fn onpointercancel(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onpointerdown(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onpointerenter(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onpointerleave(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onpointerlockchange( self, listener: impl IntoEventCallback<Event>, ) -> Self

Source

pub fn onpointerlockerror(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onpointermove(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onpointerout(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onpointerover(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onpointerup(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onselectionchange(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onselectstart(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn onshow(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ontouchcancel(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ontouchend(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ontouchmove(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ontouchstart(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ontransitioncancel(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ontransitionend(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ontransitionrun(self, listener: impl IntoEventCallback<Event>) -> Self

Source

pub fn ontransitionstart(self, listener: impl IntoEventCallback<Event>) -> Self

Source§

impl Tag<TagTypeInput>

Source

pub fn checked(self, checked: bool) -> Self

Source

pub fn value(self, value: impl IntoPropValue<Option<AttrValue>>) -> Self

Source

pub fn type_button(self) -> Self

Source

pub fn type_checkbox(self) -> Self

Source

pub fn type_color(self) -> Self

Source

pub fn type_date(self) -> Self

Source

pub fn type_datetime(self) -> Self

Source

pub fn type_datetime_local(self) -> Self

Source

pub fn type_email(self) -> Self

Source

pub fn type_file(self) -> Self

Source

pub fn type_hidden(self) -> Self

Source

pub fn type_image(self) -> Self

Source

pub fn type_month(self) -> Self

Source

pub fn type_number(self) -> Self

Source

pub fn type_password(self) -> Self

Source

pub fn type_radio(self) -> Self

Source

pub fn type_range(self) -> Self

Source

pub fn type_reset(self) -> Self

Source

pub fn type_submit(self) -> Self

Source

pub fn type_tel(self) -> Self

Source

pub fn type_text(self) -> Self

Source

pub fn type_time(self) -> Self

Source

pub fn type_url(self) -> Self

Source

pub fn type_week(self) -> Self

Trait Implementations§

Source§

impl<T: TagType> From<Tag<T>> for Children

Source§

fn from(node: Tag<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: TagType> From<Tag<T>> for VNode

Source§

fn from(node: Tag<T>) -> Self

Converts to this type from the input type.

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> 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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoPropValue<Option<T>> for T

Source§

fn into_prop_value(self) -> Option<T>

Convert self to a value of a Properties struct.
Source§

impl<T> IntoPropValue<T> for T

Source§

fn into_prop_value(self) -> T

Convert self to a value of a Properties struct.
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<Token, Builder, How> AllPropsFor<Builder, How> for Token
where Builder: Buildable<Token>, <Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,

Source§

impl<T> HasAllProps<(), T> for T