pub struct LayoutShift {
pub value: f64,
pub hadRecentInput: bool,
pub lastInputTime: TimeSinceEpoch,
pub sources: Vec<LayoutShiftAttribution>,
}Expand description
See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl
Fields§
§value: f64Score increment produced by this event.
hadRecentInput: bool§lastInputTime: TimeSinceEpoch§sources: Vec<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 Default for LayoutShift
impl Default for LayoutShift
Source§fn default() -> LayoutShift
fn default() -> LayoutShift
Returns the “default value” for a type. Read more
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 UnsafeUnpin 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