Attributes

Trait Attributes 

Source
pub trait Attributes: Sized + 'static {
    // Required method
    fn render(self, r: &mut ElementRenderer) -> Result<(), Error>;

    // Provided methods
    fn get<T: 'static>(&self) -> Option<&T> { ... }
    fn get_mut<T: 'static>(&mut self) -> Option<&mut T> { ... }
    fn with<A: Attributes>(self, attr: A) -> Pair<A, Self> { ... }
}

Required Methods§

Source

fn render(self, r: &mut ElementRenderer) -> Result<(), Error>

Provided Methods§

Source

fn get<T: 'static>(&self) -> Option<&T>

Source

fn get_mut<T: 'static>(&mut self) -> Option<&mut T>

Source

fn with<A: Attributes>(self, attr: A) -> Pair<A, Self>

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.

Implementations on Foreign Types§

Source§

impl Attributes for (&'static str, Cow<'static, str>)

Source§

fn render(self, r: &mut ElementRenderer) -> Result<(), Error>

Source§

fn with<A: Attributes>(self, attr: A) -> Pair<A, Self>

Source§

impl Attributes for ()

Source§

fn render(self, _r: &mut ElementRenderer) -> Result<(), Error>

Source§

fn get<T: 'static>(&self) -> Option<&T>

Source§

fn get_mut<T: 'static>(&mut self) -> Option<&mut T>

Implementors§

Source§

impl Attributes for ReferrerPolicy

Source§

impl Attributes for Shape

Source§

impl Attributes for Preload

Source§

impl Attributes for FormMethod

Source§

impl Attributes for PopoverTargetAction

Source§

impl Attributes for cabin::html::button::Type

Source§

impl Attributes for AriaChecked

Source§

impl Attributes for AriaCurrent

Source§

impl Attributes for AriaHasPopup

Source§

impl Attributes for AriaInvalid

Source§

impl Attributes for AriaLive

Source§

impl Attributes for AriaOrientation

Source§

impl Attributes for AriaPressed

Source§

impl Attributes for AriaRelevant

Source§

impl Attributes for AriaSort

Source§

impl Attributes for AutoAutocomplete

Source§

impl Attributes for Role

Source§

impl Attributes for AutoCapitalize

Source§

impl Attributes for Dir

Source§

impl Attributes for EnterKeyHint

Source§

impl Attributes for Hidden

Source§

impl Attributes for InputMode

Source§

impl Attributes for TabIndex

Source§

impl Attributes for AcceptCharset

Source§

impl Attributes for EncType

Source§

impl Attributes for Method

Source§

impl Attributes for Loading

Source§

impl Attributes for Decoding

Source§

impl Attributes for cabin::html::input::Type

Source§

impl Attributes for As

Source§

impl Attributes for CrossOrigin

Source§

impl Attributes for FetchPriority

Source§

impl Attributes for Charset

Source§

impl Attributes for HttpEquiv

Source§

impl Attributes for cabin::html::ol::Type

Source§

impl Attributes for Wrap

Source§

impl Attributes for Scope

Source§

impl Attributes for Kind

Source§

impl Attributes for Download

Source§

impl Attributes for Href

Source§

impl Attributes for cabin::html::a::Hreflang

Source§

impl Attributes for Ping

Source§

impl Attributes for cabin::html::a::RelList

Source§

impl Attributes for Target

Source§

impl Attributes for Coords

Source§

impl Attributes for Autoplay

Source§

impl Attributes for Controls

Source§

impl Attributes for Loop

Source§

impl Attributes for Muted

Source§

impl Attributes for Cite

Source§

impl Attributes for Disabled

Source§

impl Attributes for Form

Source§

impl Attributes for FormAction

Source§

impl Attributes for FormEnctype

Source§

impl Attributes for FormNoValidate

Source§

impl Attributes for FormTarget

Source§

impl Attributes for cabin::html::button::Name

Source§

impl Attributes for PopoverTarget

Source§

impl Attributes for cabin::html::button::Value

Source§

impl Attributes for Span

Source§

impl Attributes for Open

Source§

impl Attributes for AriaActiveDescendant

Source§

impl Attributes for AriaAtomic

Source§

impl Attributes for AriaBrailleLabel

Source§

impl Attributes for AriaBrailleRoleDescription

Source§

impl Attributes for AriaBusy

Source§

impl Attributes for AriaColCount

Source§

impl Attributes for AriaColIndex

Source§

impl Attributes for AriaColSpan

Source§

impl Attributes for AriaColindextext

Source§

impl Attributes for AriaControls

Source§

impl Attributes for AriaDescribedBy

Source§

impl Attributes for AriaDescription

Source§

impl Attributes for AriaDetails

Source§

impl Attributes for AriaDisabled

Source§

impl Attributes for AriaErrorMessage

Source§

impl Attributes for AriaExpanded

Source§

impl Attributes for AriaFlowTo

Source§

impl Attributes for AriaHidden

Source§

impl Attributes for AriaKeyShortcuts

Source§

impl Attributes for AriaLabel

Source§

impl Attributes for AriaLabelledby

Source§

impl Attributes for AriaLevel

Source§

impl Attributes for AriaModal

Source§

impl Attributes for AriaMultiLine

Source§

impl Attributes for AriaMultiSelectable

Source§

impl Attributes for AriaOwns

Source§

impl Attributes for AriaPlaceholder

Source§

impl Attributes for AriaPosInset

Source§

impl Attributes for AriaReadonly

Source§

impl Attributes for AriaRequired

Source§

impl Attributes for AriaRoleDescription

Source§

impl Attributes for AriaRowCount

Source§

impl Attributes for AriaRowIndex

Source§

impl Attributes for AriaRowIndexText

Source§

impl Attributes for AriaRowSpan

Source§

impl Attributes for AriaSelected

Source§

impl Attributes for AriaSetSize

Source§

impl Attributes for AriaValueMax

Source§

impl Attributes for AriaValueMin

Source§

impl Attributes for AriaValueNow

Source§

impl Attributes for AriaValueText

Source§

impl Attributes for Class

Source§

impl Attributes for Id

Source§

impl Attributes for OnClick

Source§

impl Attributes for AccessKey

Source§

impl Attributes for AutoFocus

Source§

impl Attributes for ContentEditable

Source§

impl Attributes for Draggable

Source§

impl Attributes for Inert

Source§

impl Attributes for Is

Source§

impl Attributes for ItemId

Source§

impl Attributes for ItemProp

Source§

impl Attributes for ItemRef

Source§

impl Attributes for ItemScope

Source§

impl Attributes for ItemType

Source§

impl Attributes for Lang

Source§

impl Attributes for Nonce

Source§

impl Attributes for Popover

Source§

impl Attributes for Slot

Source§

impl Attributes for Spellcheck

Source§

impl Attributes for Style

Source§

impl Attributes for Title

Source§

impl Attributes for Translate

Source§

impl Attributes for Action

Source§

impl Attributes for NoValidate

Source§

impl Attributes for OnSubmit

Source§

impl Attributes for cabin::html::form::RelList

Source§

impl Attributes for Allow

Source§

impl Attributes for AllowFullscreen

Source§

impl Attributes for cabin::html::iframe::Name

Source§

impl Attributes for SandboxList

Source§

impl Attributes for SrcDoc

Source§

impl Attributes for Alt

Source§

impl Attributes for IsMap

Source§

impl Attributes for Sizes

Source§

impl Attributes for SrcSet

Source§

impl Attributes for UseMap

Source§

impl Attributes for Accept

Source§

impl Attributes for AutoComplete

Source§

impl Attributes for Checked

Source§

impl Attributes for Dirname

Source§

impl Attributes for Height

Source§

impl Attributes for List

Source§

impl Attributes for cabin::html::input::Max

Source§

impl Attributes for MaxLength

Source§

impl Attributes for cabin::html::input::Min

Source§

impl Attributes for MinLength

Source§

impl Attributes for Multiple

Source§

impl Attributes for OnChange

Source§

impl Attributes for OnInput

Source§

impl Attributes for Pattern

Source§

impl Attributes for Placeholder

Source§

impl Attributes for ReadOnly

Source§

impl Attributes for Required

Source§

impl Attributes for Size

Source§

impl Attributes for Step

Source§

impl Attributes for cabin::html::input::Value

Source§

impl Attributes for Width

Source§

impl Attributes for For

Source§

impl Attributes for Blocking

Source§

impl Attributes for cabin::html::link::Hreflang

Source§

impl Attributes for ImageSizes

Source§

impl Attributes for ImageSrcset

Source§

impl Attributes for cabin::html::link::Integrity

Source§

impl Attributes for cabin::html::link::Media

Source§

impl Attributes for cabin::html::link::RelList

Source§

impl Attributes for cabin::html::link::Type

Source§

impl Attributes for cabin::html::map::Name

Source§

impl Attributes for Content

Source§

impl Attributes for cabin::html::meta::Media

Source§

impl Attributes for cabin::html::meta::Name

Source§

impl Attributes for High

Source§

impl Attributes for Low

Source§

impl Attributes for cabin::html::meter::Max

Source§

impl Attributes for cabin::html::meter::Min

Source§

impl Attributes for Optimum

Source§

impl Attributes for cabin::html::meter::Value

Source§

impl Attributes for Data

Source§

impl Attributes for Reversed

Source§

impl Attributes for Start

Source§

impl Attributes for Label

Source§

impl Attributes for Selected

Source§

impl Attributes for Async

Source§

impl Attributes for Defer

Source§

impl Attributes for cabin::html::script::Integrity

Source§

impl Attributes for NoModule

Source§

impl Attributes for Src

Source§

impl Attributes for cabin::html::slot::Name

Source§

impl Attributes for ColSpan

Source§

impl Attributes for Headers

Source§

impl Attributes for RowSpan

Source§

impl Attributes for Cols

Source§

impl Attributes for Rows

Source§

impl Attributes for Abbr

Source§

impl Attributes for Datetime

Source§

impl Attributes for Default

Source§

impl Attributes for SrcLang

Source§

impl Attributes for PlaysInline

Source§

impl Attributes for Poster

Source§

impl<Args> Attributes for &'static BoundaryRef<Args>

Source§

impl<L: Attributes, R: Attributes> Attributes for Pair<L, R>