pub enum RouteSettingsRef {
Settings(RouteSettings),
Page(PageRef),
}Expand description
What a Route’s settings hold: plain RouteSettings, or the Page that created the
route.
Dart’s Page<T> extends RouteSettings, so Route.settings is either; settings is Page is
as_page.
Variants§
Settings(RouteSettings)
A pageless route’s settings.
Page(PageRef)
A page-based route’s settings: the page itself.
Implementations§
Trait Implementations§
Source§impl Clone for RouteSettingsRef
impl Clone for RouteSettingsRef
Source§impl Debug for RouteSettingsRef
impl Debug for RouteSettingsRef
Source§impl From<Rc<dyn Page>> for RouteSettingsRef
impl From<Rc<dyn Page>> for RouteSettingsRef
Source§fn from(page: PageRef) -> RouteSettingsRef
fn from(page: PageRef) -> RouteSettingsRef
Converts to this type from the input type.
Source§impl From<RouteSettings> for RouteSettingsRef
impl From<RouteSettings> for RouteSettingsRef
Source§fn from(settings: RouteSettings) -> RouteSettingsRef
fn from(settings: RouteSettings) -> RouteSettingsRef
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RouteSettingsRef
impl !Send for RouteSettingsRef
impl !Sync for RouteSettingsRef
impl !UnwindSafe for RouteSettingsRef
impl Forget for RouteSettingsRef
impl Freeze for RouteSettingsRef
impl Move for RouteSettingsRef
impl Unpin for RouteSettingsRef
impl UnsafeUnpin for RouteSettingsRefwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RcInner<dyn Any> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Any>>: UnsafeUnpin,
*const RcInner<dyn Page> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Page>>: UnsafeUnpin,
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