pub(crate) struct SizeItem {
pub start: usize,
pub end: usize,
pub min_c: f32,
pub max_c: f32,
pub auto_min: f32,
pub edges: f32,
pub no_auto_clamp: bool,
}Expand description
トラックサイズ決定に渡すアイテム(1 軸分。サイズはいずれも margin box)。
Fields§
§start: usize§end: usize§min_c: f32§max_c: f32§auto_min: f32自動最小サイズ(min-width:auto 等)。
edges: f32マージン・ボーダー・パディング合計(minmax(auto, <fixed>) クランプで保護する外縁)。
no_auto_clamp: boolwidth/height または min-width/min-height が明示されていれば自動最小をクランプしない。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SizeItem
impl RefUnwindSafe for SizeItem
impl Send for SizeItem
impl Sync for SizeItem
impl Unpin for SizeItem
impl UnsafeUnpin for SizeItem
impl UnwindSafe for SizeItem
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