Struct chrome_remote_interface_model::dom_snapshot::LayoutTreeSnapshot[][src]

pub struct LayoutTreeSnapshot { /* fields omitted */ }
This is supported on crate features experimental and DOMSnapshot and CSS and DOM and DOMDebugger and Page only.

Table of details of an element in the DOM tree with a LayoutObject.

Implementations

impl LayoutTreeSnapshot[src]

pub fn builder() -> LayoutTreeSnapshotBuilder[src]

pub fn node_index(&self) -> &[u32]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.

pub fn styles(&self) -> &[ArrayOfStrings]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.

pub fn bounds(&self) -> &[Rectangle]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

The absolute position bounding box.

pub fn text(&self) -> &[StringIndex]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Contents of the LayoutText, if any.

pub fn stacking_contexts(&self) -> &RareBooleanData[src]

Stacking context information.

pub fn paint_orders(&self) -> Option<&Vec<u32>>[src]

Global paint order index, which is determined by the stacking order of the nodes. Nodes that are painted together will have the same index. Only provided if includePaintOrder in captureSnapshot was true.

pub fn offset_rects(&self) -> Option<&Vec<Rectangle>>[src]

The offset rect of nodes. Only available when includeDOMRects is set to true

pub fn scroll_rects(&self) -> Option<&Vec<Rectangle>>[src]

The scroll rect of nodes. Only available when includeDOMRects is set to true

pub fn client_rects(&self) -> Option<&Vec<Rectangle>>[src]

The client rect of nodes. Only available when includeDOMRects is set to true

Trait Implementations

impl Clone for LayoutTreeSnapshot[src]

impl Debug for LayoutTreeSnapshot[src]

impl<'de> Deserialize<'de> for LayoutTreeSnapshot[src]

impl Serialize for LayoutTreeSnapshot[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.