pub struct LayoutTreeSnapshot { /* private fields */ }Expand description
Table of details of an element in the DOM tree with a LayoutObject.
Implementations§
Source§impl LayoutTreeSnapshot
impl LayoutTreeSnapshot
pub fn builder( nodeIndex: Vec<i64>, styles: Vec<ArrayOfStrings>, bounds: Vec<Rectangle>, text: Vec<StringIndex>, stackingContexts: RareBooleanData, ) -> LayoutTreeSnapshotBuilder
pub fn nodeIndex(&self) -> &[i64]
pub fn styles(&self) -> &[ArrayOfStrings] ⓘ
pub fn bounds(&self) -> &[Rectangle] ⓘ
pub fn text(&self) -> &[StringIndex] ⓘ
pub fn stackingContexts(&self) -> &RareBooleanData
pub fn paintOrders(&self) -> Option<&[i64]>
pub fn offsetRects(&self) -> Option<&[Rectangle]>
pub fn scrollRects(&self) -> Option<&[Rectangle]>
pub fn clientRects(&self) -> Option<&[Rectangle]>
pub fn blendedBackgroundColors(&self) -> Option<&[StringIndex]>
pub fn textColorOpacities(&self) -> Option<&[f64]>
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 (const: unstable) · 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 Default for LayoutTreeSnapshot
impl Default for LayoutTreeSnapshot
Source§fn default() -> LayoutTreeSnapshot
fn default() -> LayoutTreeSnapshot
Returns the “default value” for a type. Read more
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 UnsafeUnpin 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