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