Struct style::stylesheets::keyframes_rule::KeyframesRule
[−]
[src]
pub struct KeyframesRule { pub name: KeyframesName, pub keyframes: Vec<Arc<Locked<Keyframe>>>, pub vendor_prefix: Option<VendorPrefix>, pub source_location: SourceLocation, }
A @keyframes
rule.
Fields
name: KeyframesName
The name of the current animation.
keyframes: Vec<Arc<Locked<Keyframe>>>
The keyframes specified for this CSS rule.
vendor_prefix: Option<VendorPrefix>
Vendor prefix type the @keyframes has.
source_location: SourceLocation
The line and column of the rule's source code.
Methods
impl KeyframesRule
[src]
pub fn find_rule(
&self,
guard: &SharedRwLockReadGuard,
selector: &str
) -> Option<usize>
[src]
&self,
guard: &SharedRwLockReadGuard,
selector: &str
) -> Option<usize>
Returns the index of the last keyframe that matches the given selector. If the selector is not valid, or no keyframe is found, returns None.
Related spec: https://drafts.csswg.org/css-animations-1/#interface-csskeyframesrule-findrule
Trait Implementations
impl Debug for KeyframesRule
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl ToCssWithGuard for KeyframesRule
[src]
fn to_css<W>(&self, guard: &SharedRwLockReadGuard, dest: &mut W) -> Result where
W: Write,
[src]
W: Write,
Serialize self
in CSS syntax, writing to dest
, using the given lock guard.
fn to_css_string(&self, guard: &SharedRwLockReadGuard) -> String
[src]
Serialize self
in CSS syntax using the given lock guard and return a string. Read more
impl DeepCloneWithLock for KeyframesRule
[src]
fn deep_clone_with_lock(
&self,
lock: &SharedRwLock,
guard: &SharedRwLockReadGuard,
params: &DeepCloneParams
) -> Self
[src]
&self,
lock: &SharedRwLock,
guard: &SharedRwLockReadGuard,
params: &DeepCloneParams
) -> Self
Deep clones this object.