Struct wasm_react::Fragment
source · [−]pub struct Fragment;
Expand description
Can be used to create a React fragment.
Example
Fragment.build(c![
h!(h1).build(c!["Hello World!"]),
h!(div).build(c!["No wrapper element"]),
])
Implementations
Trait Implementations
impl Copy for Fragment
Auto Trait Implementations
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnwindSafe for Fragment
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