pub struct FormBuilder { /* private fields */ }
Implementations§
Source§impl FormBuilder
impl FormBuilder
pub fn new() -> Self
pub fn text( self, label: &str, cfg: impl Fn(TextInput<'_>) -> TextInput<'_> + 'static, ) -> Self
pub fn number( self, label: &str, cfg: impl Fn(NumberInput<'_>) -> NumberInput<'_> + 'static, ) -> Self
pub fn confirm(self, label: &str, default_yes: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormBuilder
impl !RefUnwindSafe for FormBuilder
impl !Send for FormBuilder
impl !Sync for FormBuilder
impl Unpin for FormBuilder
impl !UnwindSafe for FormBuilder
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