pub struct FormCpt<FID, CID, CA, CS, CM>{ /* private fields */ }Expand description
A component responsible for rendering a form.
Implementations§
Source§impl<FID, CID, CA, CS, CM> FormCpt<FID, CID, CA, CS, CM>
impl<FID, CID, CA, CS, CM> FormCpt<FID, CID, CA, CS, CM>
Sourcepub fn collect(&self) -> FormResult<FID>
pub fn collect(&self) -> FormResult<FID>
Collect this form result as a FormResult.
Sourcepub fn capture_validation(&mut self) -> bool
pub fn capture_validation(&mut self) -> bool
Pass the validation event of this form to all its inputs so they can act on it and return wether or not validation has been handled internally.
Trait Implementations§
Source§impl<FID, CID, CA, CS, CM> Component<CID, CA, CS, CM> for FormCpt<FID, CID, CA, CS, CM>
impl<FID, CID, CA, CS, CM> Component<CID, CA, CS, CM> for FormCpt<FID, CID, CA, CS, CM>
Source§fn on_event(
&mut self,
event: EzEvent<CID, CM>,
state: &mut State<CS>,
) -> Vec<EzEvent<CID, CM>>
fn on_event( &mut self, event: EzEvent<CID, CM>, state: &mut State<CS>, ) -> Vec<EzEvent<CID, CM>>
Method to implement to handle events.
The component will receive any event if it is focused; but only events it is subscribed to otherwise.
Source§fn capture_focus(&mut self, forward: bool) -> bool
fn capture_focus(&mut self, forward: bool) -> bool
Returns true if the focus is handled internally.
Let’s say this component has two inner focusable area: Read more
Source§impl<FID, CID, CA, CS, CM> MockComponent for FormCpt<FID, CID, CA, CS, CM>
impl<FID, CID, CA, CS, CM> MockComponent for FormCpt<FID, CID, CA, CS, CM>
Auto Trait Implementations§
impl<FID, CID, CA, CS, CM> !RefUnwindSafe for FormCpt<FID, CID, CA, CS, CM>
impl<FID, CID, CA, CS, CM> !Send for FormCpt<FID, CID, CA, CS, CM>
impl<FID, CID, CA, CS, CM> !Sync for FormCpt<FID, CID, CA, CS, CM>
impl<FID, CID, CA, CS, CM> !UnwindSafe for FormCpt<FID, CID, CA, CS, CM>
impl<FID, CID, CA, CS, CM> Freeze for FormCpt<FID, CID, CA, CS, CM>
impl<FID, CID, CA, CS, CM> Unpin for FormCpt<FID, CID, CA, CS, CM>
impl<FID, CID, CA, CS, CM> UnsafeUnpin for FormCpt<FID, CID, CA, CS, CM>where
Form<FID>: UnsafeUnpin,
HashMap<FID, Box<dyn InputCpt<CID, CA, CS, CM>>>: UnsafeUnpin,
Option<FID>: UnsafeUnpin,
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