pub struct FormStyle {
pub label_pad: usize,
pub show_caret: bool,
pub show_description: bool,
}Expand description
Styling knobs for render_form.
Fields§
§label_pad: usizeWidth reserved for the label column. 0 = auto (max label length).
show_caret: boolRender a │ software caret in the focused Text / Integer / Float field.
show_description: boolWhen true, the focused field’s description is drawn on the line immediately below it, indented to align under the value column.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormStyle
impl RefUnwindSafe for FormStyle
impl Send for FormStyle
impl Sync for FormStyle
impl Unpin for FormStyle
impl UnsafeUnpin for FormStyle
impl UnwindSafe for FormStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more