Enum style::properties::animated_properties::TransitionProperty
[−]
[src]
pub enum TransitionProperty {
All,
Shorthand(ShorthandId),
Longhand(LonghandId),
Unsupported(CustomIdent),
}A given transition property, that is either All, a transitionable longhand property,
a shorthand with at least one transitionable longhand component, or an unsupported property.
Variants
AllAll, any transitionable property changing should generate a transition.
FIXME(emilio): Can we remove this and just use Shorthand(ShorthandId::All)?
Shorthand(ShorthandId)A shorthand.
Longhand(LonghandId)A longhand transitionable property.
Unsupported(CustomIdent)Unrecognized property which could be any non-transitionable, custom property, or unknown property.
Methods
impl TransitionProperty[src]
pub fn each<F: FnMut(&LonghandId)>(cb: F)[src]
Iterates over each longhand property.
pub fn any<F: FnMut(&LonghandId) -> bool>(cb: F) -> bool[src]
Iterates over every longhand property that is not TransitionProperty::All, stopping and returning true when the provided callback returns true for the first time.
pub fn parse<'i, 't>(input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>>[src]
Parse a transition-property value.
Trait Implementations
impl Clone for TransitionProperty[src]
fn clone(&self) -> TransitionProperty[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 TransitionProperty[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for TransitionProperty[src]
impl Hash for TransitionProperty[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl MallocSizeOf for TransitionProperty[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl PartialEq for TransitionProperty[src]
fn eq(&self, __arg_0: &TransitionProperty) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TransitionProperty) -> bool[src]
This method tests for !=.
impl ToCss for TransitionProperty[src]
fn to_css<W>(&self, dest: &mut W) -> Result where
W: Write, [src]
W: Write,
Serialize self in CSS syntax, writing to dest.
fn to_css_string(&self) -> String[src]
Serialize self in CSS syntax and return a string. Read more
impl ToComputedValue for TransitionProperty[src]
type ComputedValue = TransitionProperty
The computed value type we're going to be converted to.
fn to_computed_value(&self, _: &Context) -> Self[src]
Convert a specified value to a computed value, using itself and the data inside the Context. Read more
fn from_computed_value(other: &Self) -> Self[src]
Convert a computed value to specified value form. Read more