pub struct H3 { /* private fields */ }
Expand description
The <h3>
tag.
See MDN’s page on this for further information.
Implementations
sourceimpl H3
impl H3
sourcepub fn new<S>(from: S) -> Self where
S: ToString,
pub fn new<S>(from: S) -> Self where
S: ToString,
Create a new item of this type, given an item which can be converted
into a Cow<'static, str>
(for example a &str
or a String
).
sourcepub fn new_unchecked<S>(from: S) -> Self where
S: Into<Cow<'static, str>>,
pub fn new_unchecked<S>(from: S) -> Self where
S: Into<Cow<'static, str>>,
Create a new item of this type without first sanitizing the text. You only want this if you are certain that the text in question is safe (i.e. will not execute malicious Javascript when run.)
sourcepub fn attribute<A>(self, a: A) -> Self where
A: Into<HeadingAttr>,
pub fn attribute<A>(self, a: A) -> Self where
A: Into<HeadingAttr>,
Attach a new attribute to this node.
sourcepub fn raw_attribute(
self,
key: impl Into<Cow<'static, str>>,
value: impl Into<Cow<'static, str>>
) -> Self
pub fn raw_attribute(
self,
key: impl Into<Cow<'static, str>>,
value: impl Into<Cow<'static, str>>
) -> Self
Attach an attribute to this tag from the provided raw data.
Note that if you can, you should use the attribute
method, because it
takes better advantage of Rust’s type system.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more