Struct parcel_css::rules::keyframes::KeyframesRule
source · [−]pub struct KeyframesRule<'i> {
pub name: CustomIdent<'i>,
pub keyframes: Vec<Keyframe<'i>>,
pub vendor_prefix: VendorPrefix,
pub loc: Location,
}
Expand description
A @keyframes rule.
Fields
name: CustomIdent<'i>
The animation name.
keyframes: Vec<Keyframe<'i>>
A list of keyframes in the animation.
vendor_prefix: VendorPrefix
A vendor prefix for the rule, e.g. @-webkit-keyframes
.
loc: Location
The location of the rule in the source file.
Trait Implementations
sourceimpl<'i> Clone for KeyframesRule<'i>
impl<'i> Clone for KeyframesRule<'i>
sourcefn clone(&self) -> KeyframesRule<'i>
fn clone(&self) -> KeyframesRule<'i>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'i> Debug for KeyframesRule<'i>
impl<'i> Debug for KeyframesRule<'i>
sourceimpl<'i> PartialEq<KeyframesRule<'i>> for KeyframesRule<'i>
impl<'i> PartialEq<KeyframesRule<'i>> for KeyframesRule<'i>
sourcefn eq(&self, other: &KeyframesRule<'i>) -> bool
fn eq(&self, other: &KeyframesRule<'i>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &KeyframesRule<'i>) -> bool
fn ne(&self, other: &KeyframesRule<'i>) -> bool
This method tests for !=
.
sourceimpl<'i> ToCss for KeyframesRule<'i>
impl<'i> ToCss for KeyframesRule<'i>
sourcefn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>
) -> Result<(), PrinterError> where
W: Write,
fn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>
) -> Result<(), PrinterError> where
W: Write,
Serialize self
in CSS syntax, writing to dest
.
sourcefn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
fn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
Serialize self
in CSS syntax and return a string. Read more
impl<'i> StructuralPartialEq for KeyframesRule<'i>
Auto Trait Implementations
impl<'i> RefUnwindSafe for KeyframesRule<'i>
impl<'i> Send for KeyframesRule<'i>
impl<'i> Sync for KeyframesRule<'i>
impl<'i> Unpin for KeyframesRule<'i>
impl<'i> UnwindSafe for KeyframesRule<'i>
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more