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§
const LIVE_STATE: bool = false
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))
Sourcefn note_following_sibling_anchor(&self)
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.
fn interaction(&self, _state: Interaction) -> Option<bool>
Sourcefn is_view_transition_pseudo(&self) -> bool
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".