pub struct DefaultTransitionDelegate;Expand description
The default implementation of TransitionDelegate that the Navigator will use if its
Navigator::transition_delegate is not specified.
This transition delegate follows two rules. Firstly, all the entering routes are placed on
top of the exiting routes if they are at the same location. Secondly, the top most route will
always transition with an animated transition. All the other routes below will either be
completed with AnyRoute::current_result or added without an animated transition.
Implementations§
Source§impl DefaultTransitionDelegate
impl DefaultTransitionDelegate
Sourcepub fn new() -> DefaultTransitionDelegate
pub fn new() -> DefaultTransitionDelegate
Creates a default transition delegate.
Trait Implementations§
Source§impl Debug for DefaultTransitionDelegate
impl Debug for DefaultTransitionDelegate
Source§impl Default for DefaultTransitionDelegate
impl Default for DefaultTransitionDelegate
Source§impl TransitionDelegate for DefaultTransitionDelegate
impl TransitionDelegate for DefaultTransitionDelegate
Source§fn resolve(
&self,
app: &mut App,
new_page_route_history: &[Handle<RouteEntry>],
location_to_exiting_page_route: &HashMap<Option<Handle<RouteEntry>>, Handle<RouteEntry>>,
page_route_to_pageless_routes: &HashMap<Option<Handle<RouteEntry>>, Vec<Handle<RouteEntry>>>,
) -> Vec<Handle<RouteEntry>>
fn resolve( &self, app: &mut App, new_page_route_history: &[Handle<RouteEntry>], location_to_exiting_page_route: &HashMap<Option<Handle<RouteEntry>>, Handle<RouteEntry>>, page_route_to_pageless_routes: &HashMap<Option<Handle<RouteEntry>>, Vec<Handle<RouteEntry>>>, ) -> Vec<Handle<RouteEntry>>
A method that will be called by the
Navigator to decide how routes transition in or
out of the screen when Navigator::pages is updated. Read moreAuto Trait Implementations§
impl Forget for DefaultTransitionDelegate
impl Freeze for DefaultTransitionDelegate
impl Move for DefaultTransitionDelegate
impl RefUnwindSafe for DefaultTransitionDelegate
impl Send for DefaultTransitionDelegate
impl Sync for DefaultTransitionDelegate
impl Unpin for DefaultTransitionDelegate
impl UnsafeUnpin for DefaultTransitionDelegate
impl UnwindSafe for DefaultTransitionDelegate
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