Struct sycamore_router::RouterProps
source · [−]pub struct RouterProps<'a, R, F, I, G> where
R: Route + 'a,
F: FnOnce(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
I: Integration,
G: GenericNode, { /* private fields */ }
Expand description
Props for Router
.
Implementations
sourceimpl<'a, R, F, I, G> RouterProps<'a, R, F, I, G> where
R: Route + 'a,
F: FnOnce(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
I: Integration,
G: GenericNode,
impl<'a, R, F, I, G> RouterProps<'a, R, F, I, G> where
R: Route + 'a,
F: FnOnce(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
I: Integration,
G: GenericNode,
sourcepub fn new(integration: I, view: F) -> Self
pub fn new(integration: I, view: F) -> Self
Create a new RouterProps
.
Trait Implementations
sourceimpl<'a, R: Debug, F: Debug, I: Debug, G: Debug> Debug for RouterProps<'a, R, F, I, G> where
R: Route + 'a,
F: FnOnce(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
I: Integration,
G: GenericNode,
impl<'a, R: Debug, F: Debug, I: Debug, G: Debug> Debug for RouterProps<'a, R, F, I, G> where
R: Route + 'a,
F: FnOnce(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
I: Integration,
G: GenericNode,
sourceimpl<'a, R, F, I, G> Prop for RouterProps<'a, R, F, I, G> where
R: Route + 'a,
F: FnOnce(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
I: Integration,
G: GenericNode,
impl<'a, R, F, I, G> Prop for RouterProps<'a, R, F, I, G> where
R: Route + 'a,
F: FnOnce(Scope<'a>, &'a ReadSignal<R>) -> View<G> + 'a,
I: Integration,
G: GenericNode,
Auto Trait Implementations
impl<'a, R, F, I, G> RefUnwindSafe for RouterProps<'a, R, F, I, G> where
F: RefUnwindSafe,
G: RefUnwindSafe,
I: RefUnwindSafe,
R: RefUnwindSafe,
impl<'a, R, F, I, G> Send for RouterProps<'a, R, F, I, G> where
F: Send,
G: Sync,
I: Send,
R: Sync,
impl<'a, R, F, I, G> Sync for RouterProps<'a, R, F, I, G> where
F: Sync,
G: Sync,
I: Sync,
R: Sync,
impl<'a, R, F, I, G> Unpin for RouterProps<'a, R, F, I, G> where
F: Unpin,
I: Unpin,
impl<'a, R, F, I, G> UnwindSafe for RouterProps<'a, R, F, I, G> where
F: UnwindSafe,
G: RefUnwindSafe,
I: UnwindSafe,
R: 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