pub struct SinglePagerState<W>{
pub layout: Rc<GenericLayout<W>>,
pub nav: PageNavigationState,
pub non_exhaustive: NonExhaustive,
}Expand description
Widget state.
Fields§
§layout: Rc<GenericLayout<W>>Page layout read+write renewed with each render.
PageNavigationState holds most of our state. read+write
non_exhaustive: NonExhaustiveOnly construct with ..Default::default().
Implementations§
Source§impl<W> SinglePagerState<W>
impl<W> SinglePagerState<W>
pub fn new() -> Self
Sourcepub fn set_layout(&mut self, layout: Rc<GenericLayout<W>>)
pub fn set_layout(&mut self, layout: Rc<GenericLayout<W>>)
Set the layout.
Sourcepub fn layout(&self) -> Rc<GenericLayout<W>>
pub fn layout(&self) -> Rc<GenericLayout<W>>
Layout.
Trait Implementations§
Source§impl<W> Clone for SinglePagerState<W>
impl<W> Clone for SinglePagerState<W>
Source§fn clone(&self) -> SinglePagerState<W>
fn clone(&self) -> SinglePagerState<W>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<W> Debug for SinglePagerState<W>
impl<W> Debug for SinglePagerState<W>
Source§impl<W> Default for SinglePagerState<W>
impl<W> Default for SinglePagerState<W>
Source§impl<W> HandleEvent<Event, MouseOnly, PagerOutcome> for SinglePagerState<W>
impl<W> HandleEvent<Event, MouseOnly, PagerOutcome> for SinglePagerState<W>
Source§impl<W> HandleEvent<Event, Regular, PagerOutcome> for SinglePagerState<W>
impl<W> HandleEvent<Event, Regular, PagerOutcome> for SinglePagerState<W>
Auto Trait Implementations§
impl<W> !Freeze for SinglePagerState<W>
impl<W> !RefUnwindSafe for SinglePagerState<W>
impl<W> !Send for SinglePagerState<W>
impl<W> !Sync for SinglePagerState<W>
impl<W> Unpin for SinglePagerState<W>
impl<W> !UnwindSafe for SinglePagerState<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