pub struct WillChangeStyleValue<'a>(pub AutoOr<CommaSeparated<'a, AnimateableFeature>>);Expand description
Represents the style value for will-change as defined in css-will-change-1.
The will-change CSS property gives hints to the browser about expected changes to an element’s scroll position, contents, or style. These hints allow browsers to optimize for upcoming style changes.
The grammar is defined as:
auto | <animateable-feature>#Tuple Fields§
§0: AutoOr<CommaSeparated<'a, AnimateableFeature>>Trait Implementations§
Source§impl<'a> Clone for WillChangeStyleValue<'a>
impl<'a> Clone for WillChangeStyleValue<'a>
Source§fn clone(&self) -> WillChangeStyleValue<'a>
fn clone(&self) -> WillChangeStyleValue<'a>
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<'a> Debug for WillChangeStyleValue<'a>
impl<'a> Debug for WillChangeStyleValue<'a>
Source§impl<'a> Hash for WillChangeStyleValue<'a>
impl<'a> Hash for WillChangeStyleValue<'a>
Source§impl<'a> Ord for WillChangeStyleValue<'a>
impl<'a> Ord for WillChangeStyleValue<'a>
Source§fn cmp(&self, other: &WillChangeStyleValue<'a>) -> Ordering
fn cmp(&self, other: &WillChangeStyleValue<'a>) -> 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 WillChangeStyleValue<'a>
impl<'a> Parse<'a> for WillChangeStyleValue<'a>
Source§impl<'a> PartialEq for WillChangeStyleValue<'a>
impl<'a> PartialEq for WillChangeStyleValue<'a>
Source§impl<'a> PartialOrd for WillChangeStyleValue<'a>
impl<'a> PartialOrd for WillChangeStyleValue<'a>
Source§impl<'a> Peek<'a> for WillChangeStyleValue<'a>
impl<'a> Peek<'a> for WillChangeStyleValue<'a>
Source§impl<'a> ToCursors for WillChangeStyleValue<'a>
impl<'a> ToCursors for WillChangeStyleValue<'a>
fn to_cursors(&self, s: &mut impl CursorSink)
impl<'a> Eq for WillChangeStyleValue<'a>
impl<'a> StructuralPartialEq for WillChangeStyleValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for WillChangeStyleValue<'a>
impl<'a> !RefUnwindSafe for WillChangeStyleValue<'a>
impl<'a> !Send for WillChangeStyleValue<'a>
impl<'a> !Sync for WillChangeStyleValue<'a>
impl<'a> Unpin for WillChangeStyleValue<'a>
impl<'a> !UnwindSafe for WillChangeStyleValue<'a>
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