pub struct Form<FID>where
FID: EzCptIds,{ /* private fields */ }Expand description
Describes a whole form, which can contain multiple fields and sub-forms. As a form has a fixed layout direction, sub forms can be used to change the direction.
Implementations§
Source§impl<FID> Form<FID>where
FID: EzCptIds,
impl<FID> Form<FID>where
FID: EzCptIds,
Sourcepub fn custom_layout(&self) -> CustomLayout<FID>
pub fn custom_layout(&self) -> CustomLayout<FID>
Compute and return the layout of this form
Sourcepub fn flatten_fields(&self) -> Vec<&FormField<FID>>
pub fn flatten_fields(&self) -> Vec<&FormField<FID>>
Flatten all fields in this form and its sub-forms into a single Vec.
Trait Implementations§
Auto Trait Implementations§
impl<FID> Freeze for Form<FID>
impl<FID> RefUnwindSafe for Form<FID>
impl<FID> Send for Form<FID>
impl<FID> Sync for Form<FID>
impl<FID> Unpin for Form<FID>
impl<FID> UnsafeUnpin for Form<FID>
impl<FID> UnwindSafe for Form<FID>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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