Struct style::stylesheets::keyframes_rule::KeyframeSelector
[−]
[src]
pub struct KeyframeSelector(_);
A keyframes selector is a list of percentages or from/to symbols, which are converted at parse time to percentages.
Methods
impl KeyframeSelector
[src]
pub fn percentages(&self) -> &[KeyframePercentage]
[src]
Return the list of percentages this selector contains.
pub fn new_for_unit_testing(
percentages: Vec<KeyframePercentage>
) -> KeyframeSelector
[src]
percentages: Vec<KeyframePercentage>
) -> KeyframeSelector
A dummy public function so we can write a unit test for this.
pub fn parse<'i, 't>(input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>>
[src]
Parse a keyframe selector from CSS input.
Trait Implementations
impl Clone for KeyframeSelector
[src]
fn clone(&self) -> KeyframeSelector
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for KeyframeSelector
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for KeyframeSelector
[src]
impl PartialEq for KeyframeSelector
[src]
fn eq(&self, __arg_0: &KeyframeSelector) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &KeyframeSelector) -> bool
[src]
This method tests for !=
.