pub enum MetaName {
Charset,
Viewport,
}
Expand description
The “name” attribute for meta tags. This is called MetaName
to
disambiguate it from other tags.
Variants
Charset
Specifies the charset of the HTML document. Note that for this to work,
you also need to specify the content
attribute on the relevant
meta tag.
Meta::new()
.attribute(MetaName::Charset)
.attribute(Content::new("utf-8"));
Viewport
Sets the name of this meta
tag to “viewport”.
See the relevant MDN page for more information.
Trait Implementations
sourceimpl IntoAttribute for MetaName
impl IntoAttribute for MetaName
Auto Trait Implementations
impl RefUnwindSafe for MetaName
impl Send for MetaName
impl Sync for MetaName
impl Unpin for MetaName
impl UnwindSafe for MetaName
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