pub struct LayoutShift { /* private fields */ }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( value: f64, hadRecentInput: bool, lastInputTime: TimeSinceEpoch, sources: Vec<LayoutShiftAttribution>, ) -> LayoutShiftBuilder
pub fn value(&self) -> f64
pub fn hadRecentInput(&self) -> bool
pub fn lastInputTime(&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 (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 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