ConvertCollection

Trait ConvertCollection 

Source
pub trait ConvertCollection
where Self: Sized,
{ // Required method fn convert<'a>(d: &'a VDom<'a>) -> Result<Vec<Self>, Error>; }
Expand description

Implements a conversion from a DOM object to a collection of its own type.

Required Methods§

Source

fn convert<'a>(d: &'a VDom<'a>) -> Result<Vec<Self>, Error>

Converts a given VDOM into a vector of its own type. This is because them DOM can contain multiple instances of that type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§