pub struct ScaleStyleValue(pub NoneOr<(NumberPercentage, Option<NumberPercentage>, Option<NumberPercentage>)>);Expand description
Represents the style value for scale as defined in css-transforms-2.
The translate, rotate, and scale CSS properties apply single transformations independently, as opposed to applying multiple transformations with the transform CSS property.
The grammar is defined as:
none | [ <number> | <percentage> ]{1,3}Tuple Fields§
§0: NoneOr<(NumberPercentage, Option<NumberPercentage>, Option<NumberPercentage>)>Trait Implementations§
Source§impl Clone for ScaleStyleValue
impl Clone for ScaleStyleValue
Source§fn clone(&self) -> ScaleStyleValue
fn clone(&self) -> ScaleStyleValue
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 ScaleStyleValue
impl Debug for ScaleStyleValue
Source§impl Hash for ScaleStyleValue
impl Hash for ScaleStyleValue
Source§impl Ord for ScaleStyleValue
impl Ord for ScaleStyleValue
Source§fn cmp(&self, other: &ScaleStyleValue) -> Ordering
fn cmp(&self, other: &ScaleStyleValue) -> 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 ScaleStyleValue
impl<'a> Parse<'a> for ScaleStyleValue
Source§impl PartialEq for ScaleStyleValue
impl PartialEq for ScaleStyleValue
Source§impl PartialOrd for ScaleStyleValue
impl PartialOrd for ScaleStyleValue
Source§impl<'a> Peek<'a> for ScaleStyleValue
impl<'a> Peek<'a> for ScaleStyleValue
Source§impl ToCursors for ScaleStyleValue
impl ToCursors for ScaleStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ScaleStyleValue
impl StructuralPartialEq for ScaleStyleValue
Auto Trait Implementations§
impl Freeze for ScaleStyleValue
impl RefUnwindSafe for ScaleStyleValue
impl Send for ScaleStyleValue
impl Sync for ScaleStyleValue
impl Unpin for ScaleStyleValue
impl UnwindSafe for ScaleStyleValue
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