pub struct LayoutTreeSnapshot {
pub node_index: Vec<i32>,
pub styles: Vec<ArrayOfStrings>,
pub bounds: Vec<Rectangle>,
pub text: Vec<i32>,
pub stacking_contexts: Option<RareBooleanData>,
pub paint_orders: Option<Vec<i32>>,
pub offset_rects: Option<Vec<Rectangle>>,
pub scroll_rects: Option<Vec<Rectangle>>,
pub client_rects: Option<Vec<Rectangle>>,
pub blended_background_colors: Option<Vec<i32>>,
pub text_color_opacities: Option<Vec<f64>>,
}Expand description
Layout tree snapshot.
Fields§
§node_index: Vec<i32>Index of the corresponding node in the NodeTreeSnapshot.
styles: Vec<ArrayOfStrings>Style index array into computedStyles array.
bounds: Vec<Rectangle>CSS box model bounds (x, y, width, height).
text: Vec<i32>Text content of text nodes.
stacking_contexts: Option<RareBooleanData>Stacking contexts.
paint_orders: Option<Vec<i32>>Paint orders.
offset_rects: Option<Vec<Rectangle>>Offset rects.
scroll_rects: Option<Vec<Rectangle>>Scroll rects.
client_rects: Option<Vec<Rectangle>>Client rects.
blended_background_colors: Option<Vec<i32>>Blended background colors.
text_color_opacities: Option<Vec<f64>>Text color opacities.
Trait Implementations§
Source§impl Clone for LayoutTreeSnapshot
impl Clone for LayoutTreeSnapshot
Source§fn clone(&self) -> LayoutTreeSnapshot
fn clone(&self) -> LayoutTreeSnapshot
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 LayoutTreeSnapshot
impl Debug for LayoutTreeSnapshot
Source§impl<'de> Deserialize<'de> for LayoutTreeSnapshot
impl<'de> Deserialize<'de> for LayoutTreeSnapshot
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
Auto Trait Implementations§
impl Freeze for LayoutTreeSnapshot
impl RefUnwindSafe for LayoutTreeSnapshot
impl Send for LayoutTreeSnapshot
impl Sync for LayoutTreeSnapshot
impl Unpin for LayoutTreeSnapshot
impl UnwindSafe for LayoutTreeSnapshot
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