mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Derive ToAnimatedZero for Either<A, B>
This commit is contained in:
parent
4743696189
commit
49a5ceca9b
2 changed files with 1 additions and 19 deletions
|
@ -69,7 +69,7 @@ impl Parse for Impossible {
|
|||
/// A struct representing one of two kinds of values.
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
#[derive(Animate, Clone, ComputeSquaredDistance, Copy, HasViewportPercentage)]
|
||||
#[derive(PartialEq, ToAnimatedValue, ToComputedValue, ToCss)]
|
||||
#[derive(PartialEq, ToAnimatedValue, ToAnimatedZero, ToComputedValue, ToCss)]
|
||||
pub enum Either<A, B> {
|
||||
/// The first value.
|
||||
First(A),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue