macro_rules! box_fragment {
    () => { ... };
    (move { $($input:tt)* }) => { ... };
    ({ $($input:tt)* }) => { ... };
}
Expand description

The same as fragment except it returns a BoxFragment.

A BoxFragment can be stored in a struct or static:

static FOO: Lazy<BoxFragment> = Lazy::new(|| box_fragment!({ ... }));