Struct accessibility_tree::dom::Document
source · pub struct Document {
pub nodes: Vec<Node>,
pub style_elements: Vec<NodeId>,
pub style_set: Option<StyleSet>,
}
Fields§
§nodes: Vec<Node>
§style_elements: Vec<NodeId>
§style_set: Option<StyleSet>
Implementations§
source§impl Document
impl Document
pub fn document_node_id() -> NodeId
pub fn parse_stylesheets(&self) -> StyleSet
sourcepub fn html_link_elements(&self) -> impl Iterator<Item = (&str, &str)>
pub fn html_link_elements(&self) -> impl Iterator<Item = (&str, &str)>
(rel_attribute, href_attribute)
pub fn root_element(&self) -> NodeId
sourcepub fn child_text_content(&self, node: NodeId) -> Cow<'_, String>
pub fn child_text_content(&self, node: NodeId) -> Cow<'_, String>
pub fn node_and_following_siblings<'a>( &'a self, node: NodeId ) -> impl Iterator<Item = NodeId> + 'a
pub fn node_and_ancestors<'a>( &'a self, node: NodeId ) -> impl Iterator<Item = NodeId> + 'a
pub fn nodes<'a>(&'a self) -> impl Iterator<Item = NodeId> + 'a
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more