pub struct RouteProps<'a> {
pub to: &'a str,
pub children: Element<'a>,
}Expand description
Props for the Route component.
Fields§
§to: &'a strThe path to match.
children: Element<'a>The component to render when the path matches.
Implementations§
Trait Implementations§
Source§impl<'a> Properties for RouteProps<'a>
impl<'a> Properties for RouteProps<'a>
Auto Trait Implementations§
impl<'a> !Freeze for RouteProps<'a>
impl<'a> !RefUnwindSafe for RouteProps<'a>
impl<'a> !Send for RouteProps<'a>
impl<'a> !Sync for RouteProps<'a>
impl<'a> Unpin for RouteProps<'a>
impl<'a> !UnwindSafe for RouteProps<'a>
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