Struct Attribute

Source
pub struct Attribute<'a>(/* private fields */);

Implementations§

Source§

impl<'a> Attribute<'a>

Source

pub const ACCEPT: Attribute<'static>

Source

pub const ACCEPT_CHARSET: Attribute<'static>

Source

pub const ACCESSKEY: Attribute<'static>

Source

pub const ACTION: Attribute<'static>

Source

pub const ALIGN: Attribute<'static>

Source

pub const ALLOW: Attribute<'static>

Source

pub const ALT: Attribute<'static>

Source

pub const ASYNC: Attribute<'static>

Source

pub const AUTOCAPITALIZE: Attribute<'static>

Source

pub const AUTOCOMPLETE: Attribute<'static>

Source

pub const AUTOFOCUS: Attribute<'static>

Source

pub const AUTOPLAY: Attribute<'static>

Source

pub const BACKGROUND: Attribute<'static>

Source

pub const BGCOLOR: Attribute<'static>

Source

pub const BORDER: Attribute<'static>

Source

pub const BUFFERED: Attribute<'static>

Source

pub const CAPTURE: Attribute<'static>

Source

pub const CHALLENGE: Attribute<'static>

Source

pub const CHARSET: Attribute<'static>

Source

pub const CHECKED: Attribute<'static>

Source

pub const CITE: Attribute<'static>

Source

pub const CLASS: Attribute<'static>

Source

pub const CODE: Attribute<'static>

Source

pub const CODEBASE: Attribute<'static>

Source

pub const COLOR: Attribute<'static>

Source

pub const COLS: Attribute<'static>

Source

pub const COLSPAN: Attribute<'static>

Source

pub const CONTENT: Attribute<'static>

Source

pub const CONTENTEDITABLE: Attribute<'static>

Source

pub const CONTEXTMENU: Attribute<'static>

Source

pub const CONTROLS: Attribute<'static>

Source

pub const COORDS: Attribute<'static>

Source

pub const CROSSORIGIN: Attribute<'static>

Source

pub const CSP: Attribute<'static>

Source

pub const DATA: Attribute<'static>

Source

pub const DATETIME: Attribute<'static>

Source

pub const DECODING: Attribute<'static>

Source

pub const DEFAULT: Attribute<'static>

Source

pub const DEFER: Attribute<'static>

Source

pub const DIR: Attribute<'static>

Source

pub const DIRNAME: Attribute<'static>

Source

pub const DISABLED: Attribute<'static>

Source

pub const DOWNLOAD: Attribute<'static>

Source

pub const DRAGGABLE: Attribute<'static>

Source

pub const DROPZONE: Attribute<'static>

Source

pub const ENCTYPE: Attribute<'static>

Source

pub const ENTERKEYHINT: Attribute<'static>

Source

pub const FOR: Attribute<'static>

Source

pub const FORM: Attribute<'static>

Source

pub const FORMACTION: Attribute<'static>

Source

pub const FORMENCTYPE: Attribute<'static>

Source

pub const FORMMETHOD: Attribute<'static>

Source

pub const FORMNOVALIDATE: Attribute<'static>

Source

pub const FORMTARGET: Attribute<'static>

Source

pub const HEADERS: Attribute<'static>

Source

pub const HEIGHT: Attribute<'static>

Source

pub const HIDDEN: Attribute<'static>

Source

pub const HIGH: Attribute<'static>

Source

pub const HREF: Attribute<'static>

Source

pub const HREFLANG: Attribute<'static>

Source

pub const HTTP_EQUIV: Attribute<'static>

Source

pub const ICON: Attribute<'static>

Source

pub const ID: Attribute<'static>

Source

pub const IMPORTANCE: Attribute<'static>

Source

pub const INTEGRITY: Attribute<'static>

Source

pub const INTRINSICSIZE: Attribute<'static>

Source

pub const INPUTMODE: Attribute<'static>

Source

pub const ISMAP: Attribute<'static>

Source

pub const ITEMPROP: Attribute<'static>

Source

pub const KEYTYPE: Attribute<'static>

Source

pub const KIND: Attribute<'static>

Source

pub const LABEL: Attribute<'static>

Source

pub const LANG: Attribute<'static>

Source

pub const LANGUAGE: Attribute<'static>

Source

pub const LOADING: Attribute<'static>

Source

pub const LIST: Attribute<'static>

Source

pub const LOOP: Attribute<'static>

Source

pub const LOW: Attribute<'static>

Source

pub const MANIFEST: Attribute<'static>

Source

pub const MAX: Attribute<'static>

Source

pub const MAXLENGTH: Attribute<'static>

Source

pub const MINLENGTH: Attribute<'static>

Source

pub const MEDIA: Attribute<'static>

Source

pub const METHOD: Attribute<'static>

Source

pub const MIN: Attribute<'static>

Source

pub const MULTIPLE: Attribute<'static>

Source

pub const MUTED: Attribute<'static>

Source

pub const NAME: Attribute<'static>

Source

pub const NOVALIDATE: Attribute<'static>

Source

pub const OPEN: Attribute<'static>

Source

pub const OPTIMUM: Attribute<'static>

Source

pub const PATTERN: Attribute<'static>

Source

pub const PING: Attribute<'static>

Source

pub const PLACEHOLDER: Attribute<'static>

Source

pub const POSTER: Attribute<'static>

Source

pub const PRELOAD: Attribute<'static>

Source

pub const RADIOGROUP: Attribute<'static>

Source

pub const READONLY: Attribute<'static>

Source

pub const REFERRERPOLICY: Attribute<'static>

Source

pub const REL: Attribute<'static>

Source

pub const REQUIRED: Attribute<'static>

Source

pub const REVERSED: Attribute<'static>

Source

pub const ROWS: Attribute<'static>

Source

pub const ROWSPAN: Attribute<'static>

Source

pub const SANDBOX: Attribute<'static>

Source

pub const SCOPE: Attribute<'static>

Source

pub const SCOPED: Attribute<'static>

Source

pub const SELECTED: Attribute<'static>

Source

pub const SHAPE: Attribute<'static>

Source

pub const SIZE: Attribute<'static>

Source

pub const SIZES: Attribute<'static>

Source

pub const SLOT: Attribute<'static>

Source

pub const SPAN: Attribute<'static>

Source

pub const SPELLCHECK: Attribute<'static>

Source

pub const SRC: Attribute<'static>

Source

pub const SRCDOC: Attribute<'static>

Source

pub const SRCLANG: Attribute<'static>

Source

pub const SRCSET: Attribute<'static>

Source

pub const START: Attribute<'static>

Source

pub const STEP: Attribute<'static>

Source

pub const STYLE: Attribute<'static>

Source

pub const SUMMARY: Attribute<'static>

Source

pub const TABINDEX: Attribute<'static>

Source

pub const TARGET: Attribute<'static>

Source

pub const TITLE: Attribute<'static>

Source

pub const TRANSLATE: Attribute<'static>

Source

pub const TYPE: Attribute<'static>

Source

pub const USEMAP: Attribute<'static>

Source

pub const VALUE: Attribute<'static>

Source

pub const WIDTH: Attribute<'static>

Source

pub const WRAP: Attribute<'static>

Source

pub fn create(attribute: &'a str) -> Result<Attribute<'a>, InvalidKeyError>

Try to create a key from a string reference

Trait Implementations§

Source§

impl<'a> Clone for Attribute<'a>

Source§

fn clone(&self) -> Attribute<'a>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for Attribute<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Display for Attribute<'a>

Source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Hash for Attribute<'a>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'a> Ord for Attribute<'a>

Source§

fn cmp(&self, other: &Attribute<'a>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<'a> PartialEq for Attribute<'a>

Source§

fn eq(&self, other: &Attribute<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> PartialOrd for Attribute<'a>

Source§

fn partial_cmp(&self, other: &Attribute<'a>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<'a> Copy for Attribute<'a>

Source§

impl<'a> Eq for Attribute<'a>

Source§

impl<'a> StructuralPartialEq for Attribute<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Attribute<'a>

§

impl<'a> RefUnwindSafe for Attribute<'a>

§

impl<'a> Send for Attribute<'a>

§

impl<'a> Sync for Attribute<'a>

§

impl<'a> Unpin for Attribute<'a>

§

impl<'a> UnwindSafe for Attribute<'a>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.