script::dom::attr

Trait AttrHelpersForLayout

Source
pub(crate) trait AttrHelpersForLayout<'dom> {
    // Required methods
    fn value(self) -> &'dom AttrValue;
    fn as_str(&self) -> &'dom str;
    fn to_tokens(self) -> Option<&'dom [Atom]>;
    fn local_name(self) -> &'dom LocalName;
    fn namespace(self) -> &'dom Namespace;
}

Required Methods§

Source

fn value(self) -> &'dom AttrValue

Source

fn as_str(&self) -> &'dom str

Source

fn to_tokens(self) -> Option<&'dom [Atom]>

Source

fn local_name(self) -> &'dom LocalName

Source

fn namespace(self) -> &'dom Namespace

Implementors§

Source§

impl<'dom> AttrHelpersForLayout<'dom> for LayoutDom<'dom, Attr>