pub struct Section {
pub label: Option<&'static str>,
pub widgets: Vec<GridWidget>,
}Expand description
A group of widgets with an optional section label.
Used as input to GridLayout::build(). Bare GridWidgets convert into
ungrouped sections via From, so orphan widgets only need .into().
Fields§
§label: Option<&'static str>§widgets: Vec<GridWidget>Trait Implementations§
Source§impl From<GridWidget> for Section
impl From<GridWidget> for Section
Source§fn from(w: GridWidget) -> Section
fn from(w: GridWidget) -> Section
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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