cabin::html::elements::common

Trait Common

Source
pub trait Common: WithAttribute {
    // Provided methods
    fn id(self, id: impl Into<Cow<'static, str>>) -> Self::Output<Id> { ... }
    fn class(self, class: impl Into<Cow<'static, str>>) -> Self::Output<Class> { ... }
    fn replace_class(
        self,
        class: impl Into<Cow<'static, str>>,
    ) -> Self::Output<Class> { ... }
    fn on_click<E>(self, event: E) -> Self::Output<OnClick>
       where E: Serialize + 'static { ... }
}

Provided Methods§

Source

fn id(self, id: impl Into<Cow<'static, str>>) -> Self::Output<Id>

Unique identifier across the document.

Source

fn class(self, class: impl Into<Cow<'static, str>>) -> Self::Output<Class>

The various classes that the element belongs to.

Source

fn replace_class( self, class: impl Into<Cow<'static, str>>, ) -> Self::Output<Class>

Source

fn on_click<E>(self, event: E) -> Self::Output<OnClick>
where E: Serialize + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<A: Attributes, V: 'static> Common for UpdateView<Html<Body, A, V>>

Source§

impl<A: Attributes, V: 'static> Common for Html<Anchor, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Area, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Audio, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Base, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Blockquote, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Button, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Canvas, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Col, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Colgroup, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Data, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Del, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Details, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Dialog, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Embed, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Fieldset, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Form, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<IFrame, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Img, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Input, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Ins, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Label, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Link, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Map, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Meta, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Meter, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Object, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Ol, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<OptGroup, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<SelectOption, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Output, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Progress, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Q, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Script, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Select, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Style, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Td, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Textarea, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Th, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Time, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Video, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Abbr, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Address, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Article, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Aside, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<B, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Bdi, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Bdo, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Br, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Caption, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Cite, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Code, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Datalist, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Dd, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Dfn, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Div, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Dl, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Dt, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Em, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<FigCaption, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Figure, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Footer, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<H1, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<H2, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<H3, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<H4, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<H5, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<H6, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Header, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<HGroup, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Hr, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<I, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Kbd, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Leged, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Li, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Main, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Mark, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Menu, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Nav, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<NoScript, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<P, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Picture, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Pre, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Rp, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Rt, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Ruby, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<S, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Samp, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Search, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Section, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Small, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Span, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Strong, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Sub, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Summary, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Sup, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Table, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<TBody, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Template, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<TFoot, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<THead, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Tr, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<U, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Ul, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Var, A, V>

Source§

impl<A: Attributes, V: 'static> Common for Html<Wbr, A, V>