Struct rphtml::parser::TagMeta[][src]

pub struct TagMeta {
    pub self_closed: bool,
    pub auto_fix: bool,
    pub name: String,
    pub attrs: Vec<Attr>,
    pub lc_name_map: HashMap<String, usize>,
    // some fields omitted
}

Tag is_end: if the tag end with ‘>’ self_closed: if the tag is self-closing ‘/>’ auto_fix: if the tag either self-closing nor closed with a end tag, may auto fix by the parser name: the tag name attrs: the attribute list

Fields

self_closed: boolauto_fix: boolname: Stringattrs: Vec<Attr>lc_name_map: HashMap<String, usize>

Implementations

impl TagMeta[src]

pub fn get_name(&self, case: Option<NameCase>) -> String[src]

pub fn attrs_to_string(&self, remove_quote: bool) -> String[src]

Trait Implementations

impl Debug for TagMeta[src]

Auto Trait Implementations

impl RefUnwindSafe for TagMeta

impl Send for TagMeta

impl Sync for TagMeta

impl Unpin for TagMeta

impl UnwindSafe for TagMeta

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.