pub struct ZoomStyleValue(pub NumberPercentage);Expand description
Represents the style value for zoom as defined in css-viewport-1.
The zoom CSS property scales the size of an element. Unlike the transform property, a zoomed element affects page layout.
The grammar is defined as:
<number [0,∞]> | <percentage [0,∞]>Tuple Fields§
§0: NumberPercentageTrait Implementations§
Source§impl Clone for ZoomStyleValue
impl Clone for ZoomStyleValue
Source§fn clone(&self) -> ZoomStyleValue
fn clone(&self) -> ZoomStyleValue
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 ZoomStyleValue
impl Debug for ZoomStyleValue
Source§impl Hash for ZoomStyleValue
impl Hash for ZoomStyleValue
Source§impl Ord for ZoomStyleValue
impl Ord for ZoomStyleValue
Source§fn cmp(&self, other: &ZoomStyleValue) -> Ordering
fn cmp(&self, other: &ZoomStyleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for ZoomStyleValue
impl<'a> Parse<'a> for ZoomStyleValue
Source§impl PartialEq for ZoomStyleValue
impl PartialEq for ZoomStyleValue
Source§impl PartialOrd for ZoomStyleValue
impl PartialOrd for ZoomStyleValue
Source§impl<'a> Peek<'a> for ZoomStyleValue
impl<'a> Peek<'a> for ZoomStyleValue
Source§impl ToCursors for ZoomStyleValue
impl ToCursors for ZoomStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ZoomStyleValue
impl StructuralPartialEq for ZoomStyleValue
Auto Trait Implementations§
impl Freeze for ZoomStyleValue
impl RefUnwindSafe for ZoomStyleValue
impl Send for ZoomStyleValue
impl Sync for ZoomStyleValue
impl Unpin for ZoomStyleValue
impl UnwindSafe for ZoomStyleValue
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