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