pub struct LayoutShiftBuilder { /* private fields */ }Available on crate features
experimental and PerformanceTimeline and DOM and Network only.Implementations§
Source§impl LayoutShiftBuilder
impl LayoutShiftBuilder
pub fn had_recent_input(&mut self, v: bool) -> &mut Self
pub fn last_input_time(&mut self, v: TimeSinceEpoch) -> &mut Self
pub fn sources(&mut self, v: Vec<LayoutShiftAttribution>) -> &mut Self
pub fn build(&mut self) -> Result<LayoutShift, &'static str>
Trait Implementations§
Source§impl Clone for LayoutShiftBuilder
impl Clone for LayoutShiftBuilder
Source§fn clone(&self) -> LayoutShiftBuilder
fn clone(&self) -> LayoutShiftBuilder
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 LayoutShiftBuilder
impl Debug for LayoutShiftBuilder
Auto Trait Implementations§
impl Freeze for LayoutShiftBuilder
impl RefUnwindSafe for LayoutShiftBuilder
impl Send for LayoutShiftBuilder
impl Sync for LayoutShiftBuilder
impl Unpin for LayoutShiftBuilder
impl UnwindSafe for LayoutShiftBuilder
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