pub struct Fragment<T: Render> {
pub children: T,
}
Expand description
A top-level root component to combine a same-level components in a RSX fashion
let result = html! {
<>
<a />
<b />
</>
};
assert_eq!(result, "<a/><b/>");
Fields§
§children: T
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Fragment<T>where
T: Freeze,
impl<T> RefUnwindSafe for Fragment<T>where
T: RefUnwindSafe,
impl<T> Send for Fragment<T>where
T: Send,
impl<T> Sync for Fragment<T>where
T: Sync,
impl<T> Unpin for Fragment<T>where
T: Unpin,
impl<T> UnwindSafe for Fragment<T>where
T: UnwindSafe,
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