pub struct NavigationScope<'a> { /* private fields */ }Expand description
A Navigation and its builder.
Implementations§
Sourcepub fn compact(self, compact: CompactNavigation) -> Self
pub fn compact(self, compact: CompactNavigation) -> Self
What the destinations become in a compact window.
Without it the design system answers, which is a bottom bar on most of them. An
application whose own reference draws a compact window differently says so here:
Sidebar puts the sidebar away behind a toggle on every design system, and None
leaves the destinations off a compact window so the screen can reach them its own
way. Medium and Expanded windows keep the design system’s rail and drawer whatever
this says, and the screen still never asks how wide the window is.
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