Expand description
<length-percentage> computed values, and related ones.
The over-all design is a tagged pointer, with the lower bit of the pointer
being non-zero if it is a non-calc value. See tagged_numeric for the
shared implementation details.
Re-exports§
pub use super::calc::ComputedLeaf;
Structs§
- Calc
Length Percentage - The representation of a calc() function with mixed lengths and percentages.
- Calc
Length Percentage Resolution - Result of resolving
CalcLengthPercentage - Length
Percentage - A
<length-percentage>value. This can be either a<length>, a<percentage>, or a combination of both viacalc().
Enums§
- Allow
Anchor PosResolution InCalc Percentage - What anchor positioning functions are allowed to resolve in calc percentage values.
- Length
Percentage Tag - The discriminator used for inline LengthPercentage variants.
- Serializable 🔒
- An unpacked
<length-percentage>that owns thecalc()variant, for serialization purposes. - Unpacked
- An unpacked
<length-percentage>that borrows thecalc()variant. - Unpacked
Mut 🔒 - An unpacked
<length-percentage>that mutably borrows thecalc()variant.
Type Aliases§
- Calc
Anchor Side - Type for anchor side in
calc()and other math fucntions. - Calc
Node - The computed version of a calc() node for
<length-percentage>values. - NonNegative
Length Percentage - A wrapper of LengthPercentage, whose value must be >= 0.