pub struct StackEntryOptions {
pub basis: Option<usize>,
pub grow: usize,
pub shrink: usize,
pub min_size: usize,
pub max_size: Option<usize>,
}Expand description
Options for a stack entry.
Fields§
§basis: Option<usize>Initial size on the stack’s main axis. Defaults to “auto” (None = auto).
grow: usizeShare of positive remaining space. Defaults to 0.
shrink: usizeRelative willingness to shrink when content overflows. Defaults to 1.
min_size: usizeMinimum allocated size on the main axis. Defaults to 0.
max_size: Option<usize>Maximum allocated size on the main axis. None = no limit.
Implementations§
Source§impl StackEntryOptions
impl StackEntryOptions
Sourcepub fn with_basis(size: usize) -> Self
pub fn with_basis(size: usize) -> Self
Create options with basis (fixed size).
Trait Implementations§
Source§impl Clone for StackEntryOptions
impl Clone for StackEntryOptions
Source§impl Debug for StackEntryOptions
impl Debug for StackEntryOptions
Auto Trait Implementations§
impl Freeze for StackEntryOptions
impl RefUnwindSafe for StackEntryOptions
impl Send for StackEntryOptions
impl Sync for StackEntryOptions
impl Unpin for StackEntryOptions
impl UnsafeUnpin for StackEntryOptions
impl UnwindSafe for StackEntryOptions
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