Enum style::values::generics::border::BorderImageSideWidth
[−]
[src]
pub enum BorderImageSideWidth<LengthOrPercentage, Number> { Length(LengthOrPercentage), Number(Number), Auto, }
A generic value for a single side of a border-image-width
property.
Variants
Length(LengthOrPercentage)
<length-or-percentage>
Number(Number)
<number>
Auto
auto
Trait Implementations
impl<LengthOrPercentage: Clone, Number: Clone> Clone for BorderImageSideWidth<LengthOrPercentage, Number>
[src]
fn clone(&self) -> BorderImageSideWidth<LengthOrPercentage, Number>
[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<LengthOrPercentage: Copy, Number: Copy> Copy for BorderImageSideWidth<LengthOrPercentage, Number>
[src]
impl<LengthOrPercentage: Debug, Number: Debug> Debug for BorderImageSideWidth<LengthOrPercentage, Number>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<LengthOrPercentage, Number> MallocSizeOf for BorderImageSideWidth<LengthOrPercentage, Number> where
LengthOrPercentage: MallocSizeOf,
Number: MallocSizeOf,
[src]
LengthOrPercentage: MallocSizeOf,
Number: MallocSizeOf,
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<LengthOrPercentage: PartialEq, Number: PartialEq> PartialEq for BorderImageSideWidth<LengthOrPercentage, Number>
[src]
fn eq(&self, __arg_0: &BorderImageSideWidth<LengthOrPercentage, Number>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BorderImageSideWidth<LengthOrPercentage, Number>) -> bool
[src]
This method tests for !=
.
impl<LengthOrPercentage, Number> ToComputedValue for BorderImageSideWidth<LengthOrPercentage, Number> where
LengthOrPercentage: ToComputedValue,
Number: ToComputedValue,
[src]
LengthOrPercentage: ToComputedValue,
Number: ToComputedValue,
type ComputedValue = BorderImageSideWidth<<LengthOrPercentage as ToComputedValue>::ComputedValue, <Number as ToComputedValue>::ComputedValue>
The computed value type we're going to be converted to.
fn to_computed_value(&self, context: &Context) -> Self::ComputedValue
[src]
Convert a specified value to a computed value, using itself and the data inside the Context
. Read more
fn from_computed_value(computed: &Self::ComputedValue) -> Self
[src]
Convert a computed value to specified value form. Read more
impl<LengthOrPercentage, Number> ToCss for BorderImageSideWidth<LengthOrPercentage, Number> where
LengthOrPercentage: ToCss,
Number: ToCss,
[src]
LengthOrPercentage: ToCss,
Number: ToCss,