pub type Inset = GenericInset<Percentage, LengthPercentage>;Expand description
A computed type for inset properties.
Aliased Type§
#[repr(C)]pub enum Inset {
LengthPercentage(LengthPercentage),
Auto,
AnchorFunction(Box<GenericAnchorFunction<Percentage, GenericInset<Percentage, LengthPercentage>>>),
AnchorSizeFunction(Box<GenericAnchorSizeFunction<GenericInset<Percentage, LengthPercentage>>>),
AnchorContainingCalcFunction(LengthPercentage),
}Variants§
LengthPercentage(LengthPercentage)
A <length-percentage> value.
Auto
An auto value.
AnchorFunction(Box<GenericAnchorFunction<Percentage, GenericInset<Percentage, LengthPercentage>>>)
Inset defined by the anchor element.
AnchorSizeFunction(Box<GenericAnchorSizeFunction<GenericInset<Percentage, LengthPercentage>>>)
Inset defined by the size of the anchor element.
AnchorContainingCalcFunction(LengthPercentage)
A <length-percentage> value, guaranteed to contain calc(),
which then is guaranteed to contain anchor() or anchor-size().
Trait Implementations§
Source§impl TryTacticAdjustment for Inset
impl TryTacticAdjustment for Inset
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.