pub struct DocumentStructure {
pub nodes: Vec<DocumentNode>,
pub source_format: Option<String>,
}Expand description
A structured document tree representing the semantic content of an HTML document.
Uses a flat node array with index-based parent/child references for efficient traversal.
Fields§
§nodes: Vec<DocumentNode>All nodes in document reading order.
source_format: Option<String>The source format (always “html” for this crate).
Trait Implementations§
Source§impl Clone for DocumentStructure
impl Clone for DocumentStructure
Source§fn clone(&self) -> DocumentStructure
fn clone(&self) -> DocumentStructure
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentStructure
impl Debug for DocumentStructure
Source§impl<'de> Deserialize<'de> for DocumentStructure
impl<'de> Deserialize<'de> for DocumentStructure
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DocumentStructure
impl PartialEq for DocumentStructure
Source§impl Serialize for DocumentStructure
impl Serialize for DocumentStructure
impl Eq for DocumentStructure
impl StructuralPartialEq for DocumentStructure
Auto Trait Implementations§
impl Freeze for DocumentStructure
impl RefUnwindSafe for DocumentStructure
impl Send for DocumentStructure
impl Sync for DocumentStructure
impl Unpin for DocumentStructure
impl UnsafeUnpin for DocumentStructure
impl UnwindSafe for DocumentStructure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.