Expand description
Re-exports§
pub use crate::values::generics::calc::CalcPercentageLeaf;pub use self::SpecifiedCalcNode as CalcNode;
Structs§
- Additional
Functions - Additional functions within math functions that are permitted to be parsed depending on
the context of parsing (e.g. Parsing
insetallows use ofanchor()withincalc()). - Calc
Length Percentage - A
calc()expression that is known to resolve to a<length-percentage>. - Calc
Numeric - A struct to hold a simplified calc expression and associated clamping mode.
- Calc
Parse Flags - What is allowed to be parsed for math functions within in this context?
- Math
Function Iter - An iterator over the variants of MathFunction
Enums§
- Allow
Anchor Positioning Functions - Should parsing anchor-positioning functions in
calc()be allowed? - Calc
Node Parse InPlace Operations - Whether in place operations should be done when parsing expressions to create CalcNode
- Leaf
- A leaf node inside a
Calcexpression’s AST. - Math
Function - The name of the mathematical function that we’re parsing.
- Percentage
Context - Dictates whether percentages are allowed in the calculation that is parsed using this context, and whether such percentages have a known “percent hint” (the type that they will eventually resolve to). https://drafts.csswg.org/css-values-4/#calc-context
Functions§
Type Aliases§
- Calc
Anchor Function - Specified
anchor()function in math functions. - Calc
Anchor Size Function - Specified
anchor-size()function in math functions. - Specified
Calc Node - A calc node representation for specified values.