pub struct ViewFn(/* private fields */);
Expand description
New-type wrapper for the a function that returns a view with From
and Default
traits implemented
to enable optional props in for example <Show>
and <Suspense>
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ViewFn
impl !RefUnwindSafe for ViewFn
impl !Send for ViewFn
impl !Sync for ViewFn
impl Unpin for ViewFn
impl !UnwindSafe for ViewFn
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