pub struct SetSmallViewportHeightDifferenceOverride {
pub difference: JsUInt,
}Expand description
Allows overriding the difference between the small and large viewport sizes, which determine the
value of the svh and lvh unit, respectively. Only supported for top-level frames.
Fields§
§difference: JsUIntThis will cause an element of size 100svh to be difference pixels smaller than an element
of size 100lvh.
Trait Implementations§
Source§impl Clone for SetSmallViewportHeightDifferenceOverride
impl Clone for SetSmallViewportHeightDifferenceOverride
Source§fn clone(&self) -> SetSmallViewportHeightDifferenceOverride
fn clone(&self) -> SetSmallViewportHeightDifferenceOverride
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<'de> Deserialize<'de> for SetSmallViewportHeightDifferenceOverride
impl<'de> Deserialize<'de> for SetSmallViewportHeightDifferenceOverride
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
Source§impl Method for SetSmallViewportHeightDifferenceOverride
impl Method for SetSmallViewportHeightDifferenceOverride
const NAME: &'static str = "Emulation.setSmallViewportHeightDifferenceOverride"
type ReturnObject = SetSmallViewportHeightDifferenceOverrideReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for SetSmallViewportHeightDifferenceOverride
impl PartialEq for SetSmallViewportHeightDifferenceOverride
Source§fn eq(&self, other: &SetSmallViewportHeightDifferenceOverride) -> bool
fn eq(&self, other: &SetSmallViewportHeightDifferenceOverride) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SetSmallViewportHeightDifferenceOverride
Auto Trait Implementations§
impl Freeze for SetSmallViewportHeightDifferenceOverride
impl RefUnwindSafe for SetSmallViewportHeightDifferenceOverride
impl Send for SetSmallViewportHeightDifferenceOverride
impl Sync for SetSmallViewportHeightDifferenceOverride
impl Unpin for SetSmallViewportHeightDifferenceOverride
impl UnsafeUnpin for SetSmallViewportHeightDifferenceOverride
impl UnwindSafe for SetSmallViewportHeightDifferenceOverride
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