pub struct SetSmallViewportHeightDifferenceOverrideParams {
pub difference: i64,
}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: i64This will cause an element of size 100svh to be ‘difference’ pixels smaller than an element of size 100lvh.
Trait Implementations§
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 · 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