pub struct FieldsBuilder<F: Form, T> { /* private fields */ }
Expand description
Build a set of either all named (e.g. for a struct) or all unnamed (e.g. for a tuple struct)
Implementations§
Source§impl<F: Form, T> FieldsBuilder<F, T>
impl<F: Form, T> FieldsBuilder<F, T>
Source§impl FieldsBuilder<MetaForm, NamedFields>
impl FieldsBuilder<MetaForm, NamedFields>
Source§impl FieldsBuilder<MetaForm, UnnamedFields>
impl FieldsBuilder<MetaForm, UnnamedFields>
Source§impl FieldsBuilder<PortableForm, NamedFields>
impl FieldsBuilder<PortableForm, NamedFields>
Sourcepub fn field_portable<B>(self, builder: B) -> Selfwhere
B: Fn(FieldBuilder<PortableForm, NameNotAssigned, TypeNotAssigned>) -> FieldBuilder<PortableForm, NameAssigned, TypeAssigned>,
pub fn field_portable<B>(self, builder: B) -> Selfwhere
B: Fn(FieldBuilder<PortableForm, NameNotAssigned, TypeNotAssigned>) -> FieldBuilder<PortableForm, NameAssigned, TypeAssigned>,
Add a named field constructed using the builder.
Source§impl FieldsBuilder<PortableForm, UnnamedFields>
impl FieldsBuilder<PortableForm, UnnamedFields>
Sourcepub fn field_portable<B>(self, builder: B) -> Selfwhere
B: Fn(FieldBuilder<PortableForm, NameNotAssigned, TypeNotAssigned>) -> FieldBuilder<PortableForm, NameNotAssigned, TypeAssigned>,
pub fn field_portable<B>(self, builder: B) -> Selfwhere
B: Fn(FieldBuilder<PortableForm, NameNotAssigned, TypeNotAssigned>) -> FieldBuilder<PortableForm, NameNotAssigned, TypeAssigned>,
Add an unnamed field constructed using the builder.
Trait Implementations§
Auto Trait Implementations§
impl<F, T> Freeze for FieldsBuilder<F, T>
impl<F, T> RefUnwindSafe for FieldsBuilder<F, T>
impl<F, T> Send for FieldsBuilder<F, T>
impl<F, T> Sync for FieldsBuilder<F, T>
impl<F, T> Unpin for FieldsBuilder<F, T>
impl<F, T> UnwindSafe for FieldsBuilder<F, T>
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