pub type Size = GenericSize<NonNegativeLengthPercentage>;Expand description
A computed value for min-width, min-height, width or height property.
Aliased Type§
#[repr(C, u8)]pub enum Size {
LengthPercentage(NonNegative<LengthPercentage>),
Auto,
MaxContent,
MinContent,
FitContent,
WebkitFillAvailable,
Stretch,
FitContentFunction(NonNegative<LengthPercentage>),
AnchorSizeFunction(Box<GenericAnchorSizeFunction<GenericSize<NonNegative<LengthPercentage>>>>),
AnchorContainingCalcFunction(NonNegative<LengthPercentage>),
}Variants§
LengthPercentage(NonNegative<LengthPercentage>)
Auto
MaxContent
MinContent
FitContent
WebkitFillAvailable
Stretch
FitContentFunction(NonNegative<LengthPercentage>)
AnchorSizeFunction(Box<GenericAnchorSizeFunction<GenericSize<NonNegative<LengthPercentage>>>>)
AnchorContainingCalcFunction(NonNegative<LengthPercentage>)
Trait Implementations§
Source§impl TryTacticAdjustment for Size
impl TryTacticAdjustment for Size
Source§fn try_tactic_adjustment(
&mut self,
old_side: PhysicalSide,
new_side: PhysicalSide,
)
fn try_tactic_adjustment( &mut self, old_side: PhysicalSide, new_side: PhysicalSide, )
Performs the adjustments necessary given an old side we’re relative to, and a new side
we’re relative to.