pub struct FormState<W>{
pub layout: Rc<RefCell<GenericLayout<W>>>,
pub non_exhaustive: NonExhaustive,
}๐Deprecated since 1.2.0: merged into form::Form
Expand description
Widget state.
Fieldsยง
ยงlayout: Rc<RefCell<GenericLayout<W>>>๐Deprecated since 1.2.0: merged into form::Form
Page layout read+write might be overwritten from widget.
non_exhaustive: NonExhaustive๐Deprecated since 1.2.0: merged into form::Form
Only construct with ..Default::default().
Implementationsยง
Sourceยงimpl<W> FormState<W>
impl<W> FormState<W>
pub fn new() -> Self
๐Deprecated since 1.2.0: merged into form::Form
Sourcepub fn clear(&mut self)
๐Deprecated since 1.2.0: merged into form::Form
pub fn clear(&mut self)
Clear the layout data and reset the page/page-count.
Sourcepub fn valid_layout(&self, size: Size) -> bool
๐Deprecated since 1.2.0: merged into form::Form
pub fn valid_layout(&self, size: Size) -> bool
Layout needs to change?
Sourcepub fn set_layout(&mut self, layout: GenericLayout<W>)
๐Deprecated since 1.2.0: merged into form::Form
pub fn set_layout(&mut self, layout: GenericLayout<W>)
Set the layout.
Sourcepub fn layout(&self) -> Ref<'_, GenericLayout<W>>
๐Deprecated since 1.2.0: merged into form::Form
pub fn layout(&self) -> Ref<'_, GenericLayout<W>>
Layout.
Trait Implementationsยง
Auto Trait Implementationsยง
impl<W> Freeze for FormState<W>
impl<W> !RefUnwindSafe for FormState<W>
impl<W> !Send for FormState<W>
impl<W> !Sync for FormState<W>
impl<W> Unpin for FormState<W>
impl<W> !UnwindSafe for FormState<W>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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