pub struct FieldGrid {
pub id: String,
pub children: Vec<Widget>,
pub roomy: bool,
pub apart: bool,
}Expand description
A Widget::Grid: two columns, a field’s label in the first and its
control in the second, the column as wide as the grid’s longest label.
A widget with no label takes one cell, so two of them make a row.
Rows sit close, or a little apart when roomy.
Fields§
§id: StringKeeps it apart from another grid of the panel.
children: Vec<Widget>§roomy: bool§apart: boolThe control column a little further from the labels.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldGrid
impl<'de> Deserialize<'de> for FieldGrid
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for FieldGrid
Auto Trait Implementations§
impl Forget for FieldGrid
impl Freeze for FieldGrid
impl Move for FieldGrid
impl RefUnwindSafe for FieldGrid
impl Send for FieldGrid
impl Sync for FieldGrid
impl Unpin for FieldGrid
impl UnsafeUnpin for FieldGrid
impl UnwindSafe for FieldGrid
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