Document

Trait Document 

Source
pub trait Document {
    type Node: Node<Document = Self>;

    // Required method
    fn get_elements_with_id(
        &self,
        id: &str,
    ) -> impl Iterator<Item = <Self::Node as Node>::Element>;
}

Required Associated Types§

Source

type Node: Node<Document = Self>

Required Methods§

Source

fn get_elements_with_id( &self, id: &str, ) -> impl Iterator<Item = <Self::Node as Node>::Element>

Return an iterator over elements with the given ID in tree order.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§