Skip to main content

Document

Trait Document 

Source
pub trait Document {
    type N<'a>: Node<'a>
       where Self: 'a;

    // Required method
    fn root(&self) -> Self::N<'_>;
}
Expand description

An XPath 1.0 document: gives access to the root node.

Required Associated Types§

Source

type N<'a>: Node<'a> where Self: 'a

Required Methods§

Source

fn root(&self) -> Self::N<'_>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§