pub enum PropertyContext {
FontSize,
Margin,
Padding,
Width,
Height,
BorderWidth,
BorderRadius,
Transform,
Other,
}Expand description
Specifies which property context we’re resolving for, to determine correct reference values
Variants§
FontSize
Resolving for the font-size property itself (em refers to parent)
Margin
Resolving for margin properties (% refers to containing block width)
Padding
Resolving for padding properties (% refers to containing block width)
Width
Resolving for width or horizontal properties (% refers to containing block width)
Height
Resolving for height or vertical properties (% refers to containing block height)
BorderWidth
Resolving for border-width properties (only absolute lengths + em/rem, no % support)
BorderRadius
Resolving for border-radius (% refers to element’s own dimensions)
Transform
Resolving for transforms (% refers to element’s own dimensions)
Other
Resolving for other properties (em refers to element font-size)
Trait Implementations§
Source§impl Clone for PropertyContext
impl Clone for PropertyContext
Source§fn clone(&self) -> PropertyContext
fn clone(&self) -> PropertyContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PropertyContext
impl Debug for PropertyContext
Source§impl PartialEq for PropertyContext
impl PartialEq for PropertyContext
impl Copy for PropertyContext
impl Eq for PropertyContext
impl StructuralPartialEq for PropertyContext
Auto Trait Implementations§
impl Freeze for PropertyContext
impl RefUnwindSafe for PropertyContext
impl Send for PropertyContext
impl Sync for PropertyContext
impl Unpin for PropertyContext
impl UnwindSafe for PropertyContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more