pub struct LayoutShift { /* private fields */ }Available on crate features
experimental and PerformanceTimeline and DOM and Network only.Expand description
See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl
Implementations§
Source§impl LayoutShift
impl LayoutShift
pub fn builder() -> LayoutShiftBuilder
pub fn had_recent_input(&self) -> bool
pub fn last_input_time(&self) -> &TimeSinceEpoch
pub fn sources(&self) -> &[LayoutShiftAttribution]
Trait Implementations§
Source§impl Clone for LayoutShift
impl Clone for LayoutShift
Source§fn clone(&self) -> LayoutShift
fn clone(&self) -> LayoutShift
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 LayoutShift
impl Debug for LayoutShift
Source§impl<'de> Deserialize<'de> for LayoutShift
impl<'de> Deserialize<'de> for LayoutShift
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 LayoutShift
impl RefUnwindSafe for LayoutShift
impl Send for LayoutShift
impl Sync for LayoutShift
impl Unpin for LayoutShift
impl UnwindSafe for LayoutShift
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