pub(crate) enum LengthValue {
Auto,
Px(i32),
Percent(f32),
MinContent,
MaxContent,
FitContent,
FitContentWith(Box<LengthValue>),
MathExpr(String),
}Variants§
Auto
Px(i32)
Percent(f32)
MinContent
min-content: 折返しを最大化した最小内容幅。
MaxContent
max-content: 折返しなしの最大内容幅。
FitContent
fit-content: min(max-content, available) を clamp。
FitContentWith(Box<LengthValue>)
fit-content(length): min(max-content, max(min-content, length))。
MathExpr(String)
calc() / min() / max() / clamp()。containing width が必要なため
式文字列のまま保持し、resolve_length_value で評価する。
Trait Implementations§
Source§impl Clone for LengthValue
impl Clone for LengthValue
Auto Trait Implementations§
impl Freeze for LengthValue
impl RefUnwindSafe for LengthValue
impl Send for LengthValue
impl Sync for LengthValue
impl Unpin for LengthValue
impl UnsafeUnpin for LengthValue
impl UnwindSafe for LengthValue
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