Skip to main content

MatchDom

Trait MatchDom 

Source
pub trait MatchDom: Copy {
    const LIVE_STATE: bool = false;
Show 17 methods // Required methods fn key(&self) -> u64; fn parent(&self) -> Option<Self>; fn prev_sibling(&self) -> Option<Self>; fn next_sibling(&self) -> Option<Self>; fn has_tag(&self, name: &str) -> bool; fn tag_eq(&self, other: &Self) -> bool; fn has_class(&self, name: &str) -> bool; fn tag_name(&self) -> &str; fn each_class(&self, f: &mut dyn FnMut(&str)); fn has_scope(&self, name: &str) -> bool; fn attr(&self, name: &str) -> Option<&str>; fn is_empty(&self) -> bool; fn is_root(&self) -> bool; // Provided methods fn each_child(&self, _f: &mut dyn FnMut(Self)) { ... } fn note_following_sibling_anchor(&self) { ... } fn interaction(&self, _state: Interaction) -> Option<bool> { ... } fn is_view_transition_pseudo(&self) -> bool { ... }
}

Provided Associated Constants§

Source

const LIVE_STATE: bool = false

Required Methods§

Source

fn key(&self) -> u64

Source

fn parent(&self) -> Option<Self>

Source

fn prev_sibling(&self) -> Option<Self>

Source

fn next_sibling(&self) -> Option<Self>

Source

fn has_tag(&self, name: &str) -> bool

Source

fn tag_eq(&self, other: &Self) -> bool

Source

fn has_class(&self, name: &str) -> bool

Source

fn tag_name(&self) -> &str

Source

fn each_class(&self, f: &mut dyn FnMut(&str))

Source

fn has_scope(&self, name: &str) -> bool

Source

fn attr(&self, name: &str) -> Option<&str>

Source

fn is_empty(&self) -> bool

Source

fn is_root(&self) -> bool

Provided Methods§

Source

fn each_child(&self, _f: &mut dyn FnMut(Self))

Source

fn note_following_sibling_anchor(&self)

The answer moves when a following sibling changes, though the asker is neither its ancestor nor after it; a dependency-driven restyle must hear of that here.

Source

fn interaction(&self, _state: Interaction) -> Option<bool>

Source

fn is_view_transition_pseudo(&self) -> bool

A view transition pseudo-element’s stand-in ([crate::VIEW_TRANSITION_TAGS]): only rules written for those match it, and it matches no other rule.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§