Struct cdp::dom_snapshot::LayoutTreeNode
[−]
[src]
pub struct LayoutTreeNode<'a> {
pub dom_node_index: i32,
pub bounding_box: Rect,
pub layout_text: Option<Cow<'a, str>>,
pub inline_text_nodes: Option<Vec<InlineTextBox>>,
pub style_index: Option<i32>,
}[Experimental] Details of an element in the DOM tree with a LayoutObject.
Fields
dom_node_index: i32
The index of the related DOM node in the domNodes array returned by getSnapshot.
bounding_box: Rect
The absolute position bounding box.
layout_text: Option<Cow<'a, str>>
Contents of the LayoutText, if any.
inline_text_nodes: Option<Vec<InlineTextBox>>
The post-layout inline text nodes, if any.
style_index: Option<i32>
Index into the computedStyles array returned by getSnapshot.
Trait Implementations
impl<'a> Clone for LayoutTreeNode<'a>[src]
fn clone(&self) -> LayoutTreeNode<'a>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'a> Debug for LayoutTreeNode<'a>[src]
impl<'a> PartialEq for LayoutTreeNode<'a>[src]
fn eq(&self, __arg_0: &LayoutTreeNode<'a>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &LayoutTreeNode<'a>) -> bool[src]
This method tests for !=.