pub struct LayoutShiftAttribution { /* private fields */ }Available on crate features
experimental and PerformanceTimeline and DOM and Network only.Implementations§
Source§impl LayoutShiftAttribution
impl LayoutShiftAttribution
pub fn new( previous_rect: Rect, current_rect: Rect, node_id: Option<BackendNodeId>, ) -> Self
pub fn previous_rect(&self) -> &Rect
pub fn current_rect(&self) -> &Rect
pub fn node_id(&self) -> Option<&BackendNodeId>
Trait Implementations§
Source§impl Clone for LayoutShiftAttribution
impl Clone for LayoutShiftAttribution
Source§fn clone(&self) -> LayoutShiftAttribution
fn clone(&self) -> LayoutShiftAttribution
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 LayoutShiftAttribution
impl Debug for LayoutShiftAttribution
Source§impl<'de> Deserialize<'de> for LayoutShiftAttribution
impl<'de> Deserialize<'de> for LayoutShiftAttribution
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 LayoutShiftAttribution
impl RefUnwindSafe for LayoutShiftAttribution
impl Send for LayoutShiftAttribution
impl Sync for LayoutShiftAttribution
impl Unpin for LayoutShiftAttribution
impl UnwindSafe for LayoutShiftAttribution
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