Trait Constructor

Source
pub trait Constructor {
    // Required method
    fn construct(args: Vec<String>) -> Self;
}
Expand description

Trait used to construct the fixture. It is auto-implemented for fixtures that also implement Default.

Required Methods§

Source

fn construct(args: Vec<String>) -> Self

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§

Source§

impl<T> Constructor for T
where T: Default,