Struct hypertext::html_elements::h1

source ·
pub struct h1;
Expand description

Heading for its section.

Trait Implementations§

source§

impl Clone for h1

source§

fn clone(&self) -> h1

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 Debug for h1

source§

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

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

impl GlobalAttributes for h1

source§

const access_key: Attribute = Attribute

Used as a guide for creating a keyboard shortcut that activates or focuses the element.
source§

const autocapitalize: Attribute = Attribute

The autocapitalization behavior to use when the text is edited through non-keyboard methods.
source§

const autofocus: Attribute = Attribute

Indicates whether the element should be automatically focused when the page is loaded.
source§

const class: Attribute = Attribute

The class of the element.
source§

const contenteditable: Attribute = Attribute

Whether the element is editable.
source§

const dir: Attribute = Attribute

The text directionality of the element.
source§

const draggable: Attribute = Attribute

Whether the element is draggable.
source§

const enterkeyhint: Attribute = Attribute

A hint as to what the enter key should do.
source§

const hidden: Attribute = Attribute

Whether the element is hidden from view.
source§

const id: Attribute = Attribute

A unique identifier for the element.
source§

const inert: Attribute = Attribute

Mark an element and its children as inert, disabling interaction.
source§

const inputmode: Attribute = Attribute

Specifies what kind of input mechanism would be most helpful for users entering content.
source§

const is: Attribute = Attribute

Specify which element this is a custom variant of.
source§

const itemid: Attribute = Attribute

A global identifier for the item.
source§

const itemprop: Attribute = Attribute

A property that the item has.
source§

const itemref: Attribute = Attribute

A list of additional elements to crawl to find the name-value pairs of the item.
source§

const itemscope: Attribute = Attribute

Creates a new item, a group of name-value pairs.
source§

const itemtype: Attribute = Attribute

The item types of the item.
source§

const lang: Attribute = Attribute

The language of the element.
source§

const nonce: Attribute = Attribute

A cryptographic nonce (“number used once”) which can be used by Content Security Policy to determine whether or not a given fetch will be allowed to proceed.
source§

const popover: Attribute = Attribute

When specified, the element won’t be rendered until it becomes shown, at which point it will be rendered on top of other page content.
source§

const slot: Attribute = Attribute

The slot the element is inserted in.
source§

const spellcheck: Attribute = Attribute

Whether the element is spellchecked or not.
source§

const style: Attribute = Attribute

The CSS styling to apply to the element.
source§

const tabindex: Attribute = Attribute

Customize the index of the element for sequential focus navigation.
source§

const title: Attribute = Attribute

A text description of the element.
source§

const translate: Attribute = Attribute

Whether the element is to be translated when the page is localized.
source§

impl Copy for h1

Auto Trait Implementations§

§

impl RefUnwindSafe for h1

§

impl Send for h1

§

impl Sync for h1

§

impl Unpin for h1

§

impl UnwindSafe for h1

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

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
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,

§

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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.