pub enum AxisSizing {
Fit(f32, f32),
Grow(f32, f32),
Fixed(f32),
Percent(f32),
InnerPercent(f32),
}Expand description
Sizing modes for one axis.
Variants§
Fit(f32, f32)
Fits the element’s width/height within a min and max constraint.
Grow(f32, f32)
Expands the element to fill available space within min/max constraints.
Fixed(f32)
Sets a fixed width/height.
Percent(f32)
Sets width/height as a percentage of its parent. Value should be between 0.0 and Inf.
InnerPercent(f32)
Sets width/height as a percentage of its parent minus its padding. Value should be between 0.0 and 1.0.
Trait Implementations§
Source§impl Clone for AxisSizing
impl Clone for AxisSizing
Source§fn clone(&self) -> AxisSizing
fn clone(&self) -> AxisSizing
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 moreimpl Copy for AxisSizing
Auto Trait Implementations§
impl Freeze for AxisSizing
impl RefUnwindSafe for AxisSizing
impl Send for AxisSizing
impl Sync for AxisSizing
impl Unpin for AxisSizing
impl UnsafeUnpin for AxisSizing
impl UnwindSafe for AxisSizing
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
Source§fn embed(self) -> RenderTList<H, TailTarget>
fn embed(self) -> RenderTList<H, TailTarget>
Converts
self into Target.