[][src]Struct marked::html::TagMeta

pub struct TagMeta { /* fields omitted */ }

Metadata about HTML tags and their attributes.

Implementations

impl TagMeta[src]

pub fn is_empty(&self) -> bool[src]

Return true if the element is defined to be empty: having no contents or end tag.

Tags include: area base basefont br col embed frame hr img input link menuitem meta param source wbr.

pub fn is_deprecated(&self) -> bool[src]

Return true if the tag is deprecated as of html5.

Tags include: acronym applet basefont big blink center content dir font frame frameset isindex listing menu menuitem nobr noframes plaintext s strike tt u xmp.

pub fn is_inline(&self) -> bool[src]

Return true if the tag reprsents an inline element: is not a block layout producing element under normal use.

Because HTML 5 no longer specifies this property, this is a somewhat arbitrary distinction maintained here, loosely based on HTML 4 but extending for new tags. One noteworthy exception is that <br> is not considered inline.

Tags include: a abbr acronym audio b basefont bdi bdo big blink button canvas cite code data datalist del dfn em embed font i iframe img input ins kbd label map mark meter nobr noscript object output picture progress q ruby s samp script select slot small span strike strong sub sup textarea time tt u var video wbr.

pub fn is_meta(&self) -> bool[src]

Return true if the tag represents metadata only, where any content is not displayed text. e.g. <head>.

Tags include: base basefont head link meta title.

pub fn is_banned(&self) -> bool[src]

Return true if the tag is banned/blacklisted: where no content should be extracted, displayed, or otherwise used.

Tags include: button content datalist fieldset frame frameset input label legend noframes noscript object optgroup option script select slot style template textarea.

pub fn has_basic_attr(&self, name: &LocalName) -> bool[src]

Return true if the given name is part of the basic set of known attributes for this element.

This basic set of attributes excludes, among other things, attributes that are used exclusively for styling purposes.

Trait Implementations

impl Default for TagMeta[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.