pub struct SetSmallViewportHeightDifferenceOverrideParams { /* private fields */ }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.
Implementations§
Source§impl SetSmallViewportHeightDifferenceOverrideParams
impl SetSmallViewportHeightDifferenceOverrideParams
pub fn builder( difference: i64, ) -> SetSmallViewportHeightDifferenceOverrideParamsBuilder
pub fn difference(&self) -> i64
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for SetSmallViewportHeightDifferenceOverrideParams
impl<'a> CdpCommand<'a> for SetSmallViewportHeightDifferenceOverrideParams
Source§impl Clone for SetSmallViewportHeightDifferenceOverrideParams
impl Clone for SetSmallViewportHeightDifferenceOverrideParams
Source§fn clone(&self) -> SetSmallViewportHeightDifferenceOverrideParams
fn clone(&self) -> SetSmallViewportHeightDifferenceOverrideParams
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 Default for SetSmallViewportHeightDifferenceOverrideParams
impl Default for SetSmallViewportHeightDifferenceOverrideParams
Source§fn default() -> SetSmallViewportHeightDifferenceOverrideParams
fn default() -> SetSmallViewportHeightDifferenceOverrideParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetSmallViewportHeightDifferenceOverrideParams
impl<'de> Deserialize<'de> for SetSmallViewportHeightDifferenceOverrideParams
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 SetSmallViewportHeightDifferenceOverrideParams
impl RefUnwindSafe for SetSmallViewportHeightDifferenceOverrideParams
impl Send for SetSmallViewportHeightDifferenceOverrideParams
impl Sync for SetSmallViewportHeightDifferenceOverrideParams
impl Unpin for SetSmallViewportHeightDifferenceOverrideParams
impl UnsafeUnpin for SetSmallViewportHeightDifferenceOverrideParams
impl UnwindSafe for SetSmallViewportHeightDifferenceOverrideParams
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