#[non_exhaustive]pub enum TransformAnimation {
Spin {
duration_ms: u32,
},
}Expand description
A CSS-like transform animation applied to a single icon.
§Examples
use native_theme::TransformAnimation;
let spin = TransformAnimation::Spin { duration_ms: 1000 };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.
Trait Implementations§
Source§impl Clone for TransformAnimation
impl Clone for TransformAnimation
Source§fn clone(&self) -> TransformAnimation
fn clone(&self) -> TransformAnimation
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 TransformAnimation
impl Debug for TransformAnimation
Source§impl<'de> Deserialize<'de> for TransformAnimation
impl<'de> Deserialize<'de> for TransformAnimation
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
Source§impl Hash for TransformAnimation
impl Hash for TransformAnimation
Source§impl PartialEq for TransformAnimation
impl PartialEq for TransformAnimation
Source§impl Serialize for TransformAnimation
impl Serialize for TransformAnimation
impl Copy for TransformAnimation
impl Eq for TransformAnimation
impl StructuralPartialEq for TransformAnimation
Auto Trait Implementations§
impl Freeze for TransformAnimation
impl RefUnwindSafe for TransformAnimation
impl Send for TransformAnimation
impl Sync for TransformAnimation
impl Unpin for TransformAnimation
impl UnsafeUnpin for TransformAnimation
impl UnwindSafe for TransformAnimation
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