pub struct FlowRowConfig {
pub balanced: bool,
pub min_lines: u16,
}Expand description
Configuration for FlowRow. M3-style config: construct with
..Default::default() so future options don’t break callers.
Fields§
§balanced: boolPack lines to balance their lengths instead of filling each line
greedily (taffy 0.14 FlexWrap::Balance). Best for chip/tag clouds.
min_lines: u16Minimum number of lines; balanced items spread into at least this
many lines. 1 (default) leaves the count to layout.
Trait Implementations§
Source§impl Clone for FlowRowConfig
impl Clone for FlowRowConfig
Source§fn clone(&self) -> FlowRowConfig
fn clone(&self) -> FlowRowConfig
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 FlowRowConfig
Source§impl Debug for FlowRowConfig
impl Debug for FlowRowConfig
Source§impl Default for FlowRowConfig
impl Default for FlowRowConfig
Source§impl PartialEq for FlowRowConfig
impl PartialEq for FlowRowConfig
impl StructuralPartialEq for FlowRowConfig
Auto Trait Implementations§
impl Freeze for FlowRowConfig
impl RefUnwindSafe for FlowRowConfig
impl Send for FlowRowConfig
impl Sync for FlowRowConfig
impl Unpin for FlowRowConfig
impl UnsafeUnpin for FlowRowConfig
impl UnwindSafe for FlowRowConfig
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