Struct sycamore_router::StaticRouterProps
source · [−]pub struct StaticRouterProps<'a, R, F, G> where
R: Route + 'a,
F: Fn(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
G: GenericNode, { /* private fields */ }
Expand description
Props for StaticRouter
.
Implementations
sourceimpl<'a, R, F, G> StaticRouterProps<'a, R, F, G> where
R: Route,
F: Fn(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
G: GenericNode,
impl<'a, R, F, G> StaticRouterProps<'a, R, F, G> where
R: Route,
F: Fn(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
G: GenericNode,
sourcepub fn new(route: R, view: F) -> Self
pub fn new(route: R, view: F) -> Self
Create a new StaticRouterProps
.
Trait Implementations
sourceimpl<'a, R: Debug, F: Debug, G: Debug> Debug for StaticRouterProps<'a, R, F, G> where
R: Route + 'a,
F: Fn(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
G: GenericNode,
impl<'a, R: Debug, F: Debug, G: Debug> Debug for StaticRouterProps<'a, R, F, G> where
R: Route + 'a,
F: Fn(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
G: GenericNode,
sourceimpl<'a, R, F, G> Prop for StaticRouterProps<'a, R, F, G> where
R: Route + 'a,
F: Fn(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
G: GenericNode,
impl<'a, R, F, G> Prop for StaticRouterProps<'a, R, F, G> where
R: Route + 'a,
F: Fn(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
G: GenericNode,
Auto Trait Implementations
impl<'a, R, F, G> RefUnwindSafe for StaticRouterProps<'a, R, F, G> where
F: RefUnwindSafe,
G: RefUnwindSafe,
R: RefUnwindSafe,
impl<'a, R, F, G> Send for StaticRouterProps<'a, R, F, G> where
F: Send,
G: Sync,
R: Send + Sync,
impl<'a, R, F, G> Sync for StaticRouterProps<'a, R, F, G> where
F: Sync,
G: Sync,
R: Sync,
impl<'a, R, F, G> Unpin for StaticRouterProps<'a, R, F, G> where
F: Unpin,
R: Unpin,
impl<'a, R, F, G> UnwindSafe for StaticRouterProps<'a, R, F, G> where
F: UnwindSafe,
G: RefUnwindSafe,
R: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more