pub struct NavOptions<R> { /* private fields */ }Expand description
How NavController::navigate_with changes the back stack — Android’s
NavOptions.
Implementations§
Sourcepub fn pop_up_to(self, route: R, inclusive: bool) -> Self
pub fn pop_up_to(self, route: R, inclusive: bool) -> Self
Pops the entries above the topmost route before navigating, and that
entry too when inclusive — Android’s popUpTo(route) { inclusive }.
Nothing is popped when route is not on the back stack.
Sourcepub fn launch_single_top(self) -> Self
pub fn launch_single_top(self) -> Self
Does not push the route when it is already on top — Android’s
launchSingleTop = true.
Trait Implementations§
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