pub struct NavigationStack { /* private fields */ }Expand description
The global navigation stack.
Bubba maintains a single, app-wide stack. You rarely interact with this
directly — use the navigate() and navigate_back() free functions instead.
Implementations§
Sourcepub fn new() -> NavigationStack
pub fn new() -> NavigationStack
Create an empty navigation stack.
Sourcepub fn push(&self, entry: ScreenEntry)
pub fn push(&self, entry: ScreenEntry)
Push a new screen onto the stack.
Sourcepub fn pop(&self) -> bool
pub fn pop(&self) -> bool
Pop the current screen (back navigation).
Returns false if the stack has only one screen (can’t go further back).
Names of all screens on the stack, bottom → top.
Trait Implementations§
Source§fn default() -> NavigationStack
fn default() -> NavigationStack
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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