Skip to main content

Fragment

Trait Fragment 

Source
pub trait Fragment {
    // Required method
    fn apply<'a>(&self, dom: FragmentBuilder<'a>) -> FragmentBuilder<'a>;
}
Expand description

A fragment is a collection of children which can be inserted into a DomBuilder.

See the documentation for fragment! for more details.

Required Methods§

Source

fn apply<'a>(&self, dom: FragmentBuilder<'a>) -> FragmentBuilder<'a>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<A> Fragment for &A
where A: Fragment + ?Sized,

Source§

fn apply<'a>(&self, dom: FragmentBuilder<'a>) -> FragmentBuilder<'a>

Source§

impl<A> Fragment for Arc<A>
where A: Fragment + ?Sized,

Source§

fn apply<'a>(&self, dom: FragmentBuilder<'a>) -> FragmentBuilder<'a>

Source§

impl<A> Fragment for Box<A>
where A: Fragment + ?Sized,

Source§

fn apply<'a>(&self, dom: FragmentBuilder<'a>) -> FragmentBuilder<'a>

Source§

impl<A> Fragment for Rc<A>
where A: Fragment + ?Sized,

Source§

fn apply<'a>(&self, dom: FragmentBuilder<'a>) -> FragmentBuilder<'a>

Implementors§