pub struct KeyframesAtRule {
pub vendor_prefix: Option<VendorPrefix>,
pub name: KeyframesName,
pub keyframes: Vec<Keyframe>,
}
Expand description
A @keyframes
rule.
Keyframes: https://drafts.csswg.org/css-animations/#keyframes
Fields§
§vendor_prefix: Option<VendorPrefix>
Vendor prefix type the @keyframes has.
name: KeyframesName
The name of the current animation.
keyframes: Vec<Keyframe>
The keyframes specified for this CSS rule.
Implementations§
Source§impl KeyframesAtRule
impl KeyframesAtRule
Sourcepub fn find_rule(&self, selector: KeyframeSelector) -> Option<usize>
pub fn find_rule(&self, selector: KeyframeSelector) -> 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§
Source§impl Clone for KeyframesAtRule
impl Clone for KeyframesAtRule
Source§fn clone(&self) -> KeyframesAtRule
fn clone(&self) -> KeyframesAtRule
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 KeyframesAtRule
impl Debug for KeyframesAtRule
Source§impl HasVendorPrefix for KeyframesAtRule
impl HasVendorPrefix for KeyframesAtRule
fn isNotVendorPrefixed(&self) -> bool
Source§impl ToCss for KeyframesAtRule
impl ToCss for KeyframesAtRule
impl VendorPrefixedAtRule for KeyframesAtRule
Auto Trait Implementations§
impl Freeze for KeyframesAtRule
impl RefUnwindSafe for KeyframesAtRule
impl Send for KeyframesAtRule
impl Sync for KeyframesAtRule
impl Unpin for KeyframesAtRule
impl UnwindSafe for KeyframesAtRule
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