Trait SubFixture

Source
pub trait SubFixture: Fixture + 'static { }
Expand description

A fixture that can be used as dependency for another fixture.

This is mainly a static Fixture. This trait is defined as syntaxic suggar to allow :

#[fixture]
fn MyFixture<F>(fixt: F) -> u32
    where F: SubFixture<Type = u32>
{
    *fixt
}

instead of

#[fixture]
fn MyFixture<F>(fixt: F) -> u32
    where F: Fixture<Type = u32> + 'static
{
    *fixt
}

Implementors§

Source§

impl<F> SubFixture for F
where F: Fixture + 'static,