NewTree

Type Alias NewTree 

Source
pub type NewTree<S> = Result<<S as Strategy>::Tree, Reason>;
Expand description

A new ValueTree from a Strategy when Ok or otherwise Err when a new value-tree can not be produced for some reason such as in the case of filtering with a predicate which always returns false. You should pass in your strategy as the type parameter.

Aliased Type§

pub enum NewTree<S> {
    Ok(<S as Strategy>::Tree),
    Err(Reason),
}

Variants§

§1.0.0

Ok(<S as Strategy>::Tree)

Contains the success value

§1.0.0

Err(Reason)

Contains the error value

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.