pub struct ForProps<E, T, G, I, K>{
pub each: E,
pub key: I,
pub children: Box<dyn Fn() -> Vec<G>>,
}Expand description
Properties for the For component, a keyed list.
Fields§
§each: EItems over which the component should iterate.
key: IA key function that will be applied to each item
children: Box<dyn Fn() -> Vec<G>>Should provide a single child function, which takes
Implementations§
Auto Trait Implementations§
impl<E, T, G, I, K> Freeze for ForProps<E, T, G, I, K>
impl<E, T, G, I, K> !RefUnwindSafe for ForProps<E, T, G, I, K>
impl<E, T, G, I, K> !Send for ForProps<E, T, G, I, K>
impl<E, T, G, I, K> !Sync for ForProps<E, T, G, I, K>
impl<E, T, G, I, K> Unpin for ForProps<E, T, G, I, K>
impl<E, T, G, I, K> !UnwindSafe for ForProps<E, T, G, I, K>
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