pub struct KeyframeRule {
pub offsets: Vec<f32>,
pub declarations: StyleDeclarationBlock,
}Expand description
A single structured keyframe rule.
Fields§
§offsets: Vec<f32>Keyframe offsets as values between 0.0 and 1.0.
declarations: StyleDeclarationBlockDeclarations applied at this step.
Implementations§
Trait Implementations§
Source§impl Clone for KeyframeRule
impl Clone for KeyframeRule
Source§fn clone(&self) -> KeyframeRule
fn clone(&self) -> KeyframeRule
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 KeyframeRule
impl Debug for KeyframeRule
Source§impl<'de> Deserialize<'de> for KeyframeRule
impl<'de> Deserialize<'de> for KeyframeRule
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 PartialEq for KeyframeRule
impl PartialEq for KeyframeRule
Source§fn eq(&self, other: &KeyframeRule) -> bool
fn eq(&self, other: &KeyframeRule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyframeRule
Auto Trait Implementations§
impl Freeze for KeyframeRule
impl RefUnwindSafe for KeyframeRule
impl Send for KeyframeRule
impl Sync for KeyframeRule
impl Unpin for KeyframeRule
impl UnsafeUnpin for KeyframeRule
impl UnwindSafe for KeyframeRule
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