#[non_exhaustive]pub enum WillChange {
Auto,
Contents,
ScrollPosition,
Raw(Raw),
}Expand description
A value of will-change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
auto.
Contents
contents.
ScrollPosition
scroll-position.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for WillChange
impl Clone for WillChange
Source§fn clone(&self) -> WillChange
fn clone(&self) -> WillChange
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 Debug for WillChange
impl Debug for WillChange
Source§impl Display for WillChange
impl Display for WillChange
Source§impl From<Raw> for WillChange
impl From<Raw> for WillChange
Source§impl PartialEq for WillChange
impl PartialEq for WillChange
impl StructuralPartialEq for WillChange
Auto Trait Implementations§
impl Freeze for WillChange
impl RefUnwindSafe for WillChange
impl Send for WillChange
impl Sync for WillChange
impl Unpin for WillChange
impl UnsafeUnpin for WillChange
impl UnwindSafe for WillChange
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