pub struct NavigationLink<Label, Content> {
pub label: Label,
pub content: Content,
}Expand description
A link that navigates to another view when activated.
The NavigationLink combines a label view with a function that creates
the destination view when the link is activated.
Fields§
§label: LabelThe label view displayed for this link
content: ContentA function that creates the destination view when the link is activated
Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more