pub struct VarFunction(pub Rc<VarExpression>);
Tuple Fields§
§0: Rc<VarExpression>
Trait Implementations§
Source§impl Clone for VarFunction
impl Clone for VarFunction
Source§fn clone(&self) -> VarFunction
fn clone(&self) -> VarFunction
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 VarFunction
impl Debug for VarFunction
Source§impl<U: Unit> Expression<U> for VarFunction
impl<U: Unit> Expression<U> for VarFunction
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>
Evaluate the VarFunction by returning the numeric value of the canonical dimension 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 VarFunction
impl Hash for VarFunction
Source§impl Ord for VarFunction
impl Ord for VarFunction
Source§fn cmp(&self, other: &VarFunction) -> Ordering
fn cmp(&self, other: &VarFunction) -> 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 VarFunction
impl PartialEq for VarFunction
Source§impl PartialOrd for VarFunction
impl PartialOrd for VarFunction
Source§impl ToCss for VarFunction
impl ToCss for VarFunction
impl Eq for VarFunction
impl StructuralPartialEq for VarFunction
Auto Trait Implementations§
impl Freeze for VarFunction
impl RefUnwindSafe for VarFunction
impl !Send for VarFunction
impl !Sync for VarFunction
impl Unpin for VarFunction
impl UnwindSafe for VarFunction
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