pub struct VarExpression {
pub custom_property_lower_case_name_without_double_dash: String,
pub default_value_css: Option<String>,
pub is_not_in_page_rule: bool,
}
Fields§
§custom_property_lower_case_name_without_double_dash: String
§default_value_css: Option<String>
§is_not_in_page_rule: bool
Trait Implementations§
Source§impl Clone for VarExpression
impl Clone for VarExpression
Source§fn clone(&self) -> VarExpression
fn clone(&self) -> VarExpression
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 VarExpression
impl Debug for VarExpression
Source§impl<U: Unit> Expression<U> for VarExpression
impl<U: Unit> Expression<U> for VarExpression
Source§fn evaluate<Conversion: FontRelativeLengthConversion<U::Number> + ViewportPercentageLengthConversion<U::Number> + PercentageConversion<U::Number> + AttributeConversion<U> + CssVariableConversion>(
&self,
conversion: &Conversion,
) -> Option<U::Number>
fn evaluate<Conversion: FontRelativeLengthConversion<U::Number> + ViewportPercentageLengthConversion<U::Number> + PercentageConversion<U::Number> + AttributeConversion<U> + CssVariableConversion>( &self, conversion: &Conversion, ) -> Option<U::Number>
Division by zero is handled by returning the maximum possible f32 value Subtractions for UnsignedCssNumber that are negative are handled by returning 0.0
Source§impl Hash for VarExpression
impl Hash for VarExpression
Source§impl Ord for VarExpression
impl Ord for VarExpression
Source§fn cmp(&self, other: &VarExpression) -> Ordering
fn cmp(&self, other: &VarExpression) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VarExpression
impl PartialEq for VarExpression
Source§impl PartialOrd for VarExpression
impl PartialOrd for VarExpression
Source§impl ToCss for VarExpression
impl ToCss for VarExpression
impl Eq for VarExpression
impl StructuralPartialEq for VarExpression
Auto Trait Implementations§
impl Freeze for VarExpression
impl RefUnwindSafe for VarExpression
impl Send for VarExpression
impl Sync for VarExpression
impl Unpin for VarExpression
impl UnwindSafe for VarExpression
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