pub struct FormUi<'a> { /* private fields */ }Expand description
Builder handed to the Form::show closure.
Implementations§
Source§impl FormUi<'_>
impl FormUi<'_>
Sourcepub fn field(&mut self, label: impl AsRef<str>, content: impl FnOnce(&mut Ui))
pub fn field(&mut self, label: impl AsRef<str>, content: impl FnOnce(&mut Ui))
A labeled field.
Sourcepub fn required(
&mut self,
label: impl AsRef<str>,
content: impl FnOnce(&mut Ui),
)
pub fn required( &mut self, label: impl AsRef<str>, content: impl FnOnce(&mut Ui), )
A labeled field with a required marker.
Sourcepub fn field_with_hint(
&mut self,
label: impl AsRef<str>,
hint: impl Into<String>,
content: impl FnOnce(&mut Ui),
)
pub fn field_with_hint( &mut self, label: impl AsRef<str>, hint: impl Into<String>, content: impl FnOnce(&mut Ui), )
A labeled field with a muted hint line below the input.
Auto Trait Implementations§
impl<'a> Freeze for FormUi<'a>
impl<'a> !RefUnwindSafe for FormUi<'a>
impl<'a> Send for FormUi<'a>
impl<'a> Sync for FormUi<'a>
impl<'a> Unpin for FormUi<'a>
impl<'a> UnsafeUnpin for FormUi<'a>
impl<'a> !UnwindSafe for FormUi<'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