pub enum Component<'a> {
Show 13 variants
Area {
template: Option<&'a str>,
rows: Vec<&'a str>,
cols: Vec<&'a str>,
gap: Option<&'a str>,
gap_x: Option<&'a str>,
gap_y: Option<&'a str>,
},
Box {
max_width: Option<&'a str>,
grow: bool,
},
Center {
max_width: Option<&'a str>,
and_text: bool,
recursive: bool,
},
Extender {
screen: bool,
keep_center: bool,
keep_p: bool,
keep_pl: bool,
keep_pr: bool,
},
Grid {
min_cell_width: Option<&'a str>,
min_cols: Option<&'a str>,
max_cols: Option<&'a str>,
gap: Option<&'a str>,
gap_x: Option<&'a str>,
gap_y: Option<&'a str>,
},
Icon {
scale: Option<&'a str>,
align: Option<&'a str>,
gap_dir: Option<&'a str>,
gap: Option<&'a str>,
},
Ledge {
nowrap: bool,
twin_width: bool,
direction: Option<&'a str>,
justify: Option<&'a str>,
align: Option<&'a str>,
gap: Option<&'a str>,
gap_x: Option<&'a str>,
gap_y: Option<&'a str>,
},
Outsider {
position: Option<&'a str>,
top: Option<&'a str>,
bottom: Option<&'a str>,
left: Option<&'a str>,
right: Option<&'a str>,
},
Rack {
height: Option<&'a str>,
min_height: Option<&'a str>,
max_height: Option<&'a str>,
gap: Option<&'a str>,
},
Sidebar {
reverse: bool,
shrink: bool,
side: Option<&'a str>,
side_width: Option<&'a str>,
content_min: Option<&'a str>,
gap: Option<&'a str>,
gap_x: Option<&'a str>,
gap_y: Option<&'a str>,
},
Slider {
hide_bar: bool,
item_width: Option<&'a str>,
height: Option<&'a str>,
gap: Option<&'a str>,
},
Stack {
gap: Option<&'a str>,
recursive: bool,
},
Switcher {
threshold: Option<&'a str>,
limit: Option<&'a str>,
reverse: bool,
gap: Option<&'a str>,
gap_x: Option<&'a str>,
gap_y: Option<&'a str>,
},
}
Variants§
Area
Fields
Box
Center
Extender
Grid
Fields
Icon
Ledge
Fields
Outsider
Fields
Rack
Fields
Sidebar
Fields
Slider
Stack
Switcher
Implementations§
Trait Implementations§
impl<'a> Eq for Component<'a>
impl<'a> StructuralPartialEq for Component<'a>
Auto Trait Implementations§
impl<'a> Freeze for Component<'a>
impl<'a> RefUnwindSafe for Component<'a>
impl<'a> Send for Component<'a>
impl<'a> Sync for Component<'a>
impl<'a> Unpin for Component<'a>
impl<'a> UnwindSafe for Component<'a>
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