pub(crate) enum LengthValue {
Auto,
Px(i32),
Percent(f32),
MinContent,
MaxContent,
FitContent,
MathExpr(String),
}Variants§
Auto
Px(i32)
Percent(f32)
MinContent
min-content: 折返しを最大化した最小内容幅。
MaxContent
max-content: 折返しなしの最大内容幅。
FitContent
fit-content: min(max-content, available) を clamp。
MathExpr(String)
calc() / min() / max() / clamp()。containing width が必要なため
式文字列のまま保持し、resolve_length_value で評価する。
Trait Implementations§
Source§impl Clone for LengthValue
impl Clone for LengthValue
Source§fn clone(&self) -> LengthValue
fn clone(&self) -> LengthValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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