[][src]Enum kagura::prelude::Html

pub enum Html {
    ComponentBuilder {
        builder: Option<Box<dyn FnOnce(Option<Rc<RefCell<Box<dyn Composed + 'static>>>>) -> Rc<RefCell<Box<dyn Composed + 'static>>>>>,
        parent: Option<Weak<RefCell<Box<dyn Composed + 'static>>>>,
        children: Vec<Html>,
    },
    ComponentNode(Rc<RefCell<Box<dyn Composed>>>),
    TextNode(String),
    ElementNode {
        tag_name: String,
        children: Vec<Html>,
        attributes: Attributes,
        events: Events,
        parent: Option<Weak<RefCell<Box<dyn Composed + 'static>>>>,
    },
    Fragment(Vec<Html>),
    None,
}

viritual html element

Variants

ComponentBuilder

Fields of ComponentBuilder

builder: Option<Box<dyn FnOnce(Option<Rc<RefCell<Box<dyn Composed + 'static>>>>) -> Rc<RefCell<Box<dyn Composed + 'static>>>>>parent: Option<Weak<RefCell<Box<dyn Composed + 'static>>>>children: Vec<Html>
ComponentNode(Rc<RefCell<Box<dyn Composed>>>)
TextNode(String)
ElementNode

Fields of ElementNode

tag_name: Stringchildren: Vec<Html>attributes: Attributesevents: Eventsparent: Option<Weak<RefCell<Box<dyn Composed + 'static>>>>
Fragment(Vec<Html>)
None

Implementations

impl Html[src]

pub fn component<C: 'static, P: 'static, M: 'static, S: 'static>(
    props: P,
    sub_map: Subscription<S>,
    children: Vec<Html>
) -> Html where
    C: Component<Props = P, Msg = M, Sub = S> + Constructor<Props = P>, 
[src]

pub fn fragment(children: Vec<Html>) -> Self[src]

pub fn text(text: impl Into<String>) -> Self[src]

Creates Html from a non-validated text

pub fn node(
    tag_name: impl Into<String>,
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

Creates Html from element

pub fn none() -> Self[src]

Creates Html which means there is no node

pub fn a(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn abbr(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn address(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn area(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn article(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn aside(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn audio(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn b(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn bdi(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn bdo(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn blockquote(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn button(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn br(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn cite(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn caption(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn canvas(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn code(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn col(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn colgroup(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn datalist(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn details(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn dd(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn dfn(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn div(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn data(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn del(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn dl(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn dt(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn em(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn embed(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn fieldset(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn figcaption(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn figure(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn footer(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn form(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn h1(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn h2(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn h3(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn h4(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn h5(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn h6(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn header(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn hr(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn i(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn iframe(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn img(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn input(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn ins(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn kbd(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn label(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn legend(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn li(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn main(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn mark(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn map(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn menu(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn menuitem(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn meter(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn nav(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn object(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn ol(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn optgroup(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn option(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn output(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn p(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn param(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn picture(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn pre(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn progress(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn q(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn rb(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn rp(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn rt(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn rtc(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn rubu(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn s(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn samp(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn section(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn select(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn small(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn source(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn span(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn strong(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn sub(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn summary(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn sup(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn table(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn tbody(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn td(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn textarea(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn tfoot(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn th(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn thead(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn time(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn tr(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn track(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn u(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn ul(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn var(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

pub fn video(
    attributes: Attributes,
    events: Events,
    children: Vec<Html>
) -> Self
[src]

pub fn wbr(attributes: Attributes, events: Events, children: Vec<Html>) -> Self[src]

Trait Implementations

impl Clone for Html[src]

impl Debug for Html[src]

Auto Trait Implementations

impl !RefUnwindSafe for Html

impl !Send for Html

impl !Sync for Html

impl Unpin for Html

impl !UnwindSafe for Html

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,