pub trait Document {
type Node: Node<Document = Self>;
// Required methods
fn is_html_document(&self) -> bool;
fn get_elements_with_id(
&self,
id: &str,
) -> impl Iterator<Item = <Self::Node as Node>::Element>;
}
Required Associated Types§
Required Methods§
fn is_html_document(&self) -> bool
fn get_elements_with_id( &self, id: &str, ) -> impl Iterator<Item = <Self::Node as Node>::Element>
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.