pub struct LayoutShiftBuilder { /* private fields */ }
Implementations§
source§impl LayoutShiftBuilder
impl LayoutShiftBuilder
pub fn value(self, value: impl Into<f64>) -> LayoutShiftBuilder
pub fn had_recent_input( self, had_recent_input: impl Into<bool> ) -> LayoutShiftBuilder
pub fn last_input_time( self, last_input_time: impl Into<TimeSinceEpoch> ) -> LayoutShiftBuilder
pub fn source( self, source: impl Into<LayoutShiftAttribution> ) -> LayoutShiftBuilder
pub fn sources<I, S>(self, sources: I) -> LayoutShiftBuilder
pub fn build(self) -> Result<LayoutShift, String>
Trait Implementations§
source§impl Clone for LayoutShiftBuilder
impl Clone for LayoutShiftBuilder
source§fn clone(&self) -> LayoutShiftBuilder
fn clone(&self) -> LayoutShiftBuilder
Returns a copy 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 Default for LayoutShiftBuilder
impl Default for LayoutShiftBuilder
source§fn default() -> LayoutShiftBuilder
fn default() -> LayoutShiftBuilder
Returns the “default value” for a type. Read more
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