Struct TupleValueTree
pub struct TupleValueTree<T> { /* private fields */ }
Common ValueTree implementation for all tuple strategies.
Implementations
impl<T> TupleValueTree<T>
fn new(inner: T) -> SelfCreate a new
TupleValueTreewrappinginner.It only makes sense for
innerto be a tuple of an arity for which the type implementsValueTree.
Trait Implementations
impl<A: ValueTree> ValueTree for TupleValueTree<(A,)>
type Value = (<A as ValueTree>::Value,);fn current(&self) -> Self::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool
impl<A: ValueTree, B: ValueTree> ValueTree for TupleValueTree<(A, B)>
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value);fn current(&self) -> Self::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool
impl<A: ValueTree, B: ValueTree, C: ValueTree> ValueTree for TupleValueTree<(A, B, C)>
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value);fn current(&self) -> Self::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool
impl<A: ValueTree, B: ValueTree, C: ValueTree, D: ValueTree> ValueTree for TupleValueTree<(A, B, C, D)>
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value);fn current(&self) -> Self::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool
impl<A: ValueTree, B: ValueTree, C: ValueTree, D: ValueTree, E: ValueTree> ValueTree for TupleValueTree<(A, B, C, D, E)>
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value, <E as ValueTree>::Value);fn current(&self) -> Self::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool
impl<A: ValueTree, B: ValueTree, C: ValueTree, D: ValueTree, E: ValueTree, F: ValueTree> ValueTree for TupleValueTree<(A, B, C, D, E, F)>
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value, <E as ValueTree>::Value, <F as ValueTree>::Value);fn current(&self) -> Self::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool
impl<A: ValueTree, B: ValueTree, C: ValueTree, D: ValueTree, E: ValueTree, F: ValueTree, G: ValueTree> ValueTree for TupleValueTree<(A, B, C, D, E, F, G)>
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value, <E as ValueTree>::Value, <F as ValueTree>::Value, <G as ValueTree>::Value);fn current(&self) -> Self::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool
impl<A: ValueTree, B: ValueTree, C: ValueTree, D: ValueTree, E: ValueTree, F: ValueTree, G: ValueTree, H: ValueTree> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H)>
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value, <E as ValueTree>::Value, <F as ValueTree>::Value, <G as ValueTree>::Value, <H as ValueTree>::Value);fn current(&self) -> Self::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool
impl<A: ValueTree, B: ValueTree, C: ValueTree, D: ValueTree, E: ValueTree, F: ValueTree, G: ValueTree, H: ValueTree, I: ValueTree> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H, I)>
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value, <E as ValueTree>::Value, <F as ValueTree>::Value, <G as ValueTree>::Value, <H as ValueTree>::Value, <I as ValueTree>::Value);fn current(&self) -> Self::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool
impl<A: ValueTree, B: ValueTree, C: ValueTree, D: ValueTree, E: ValueTree, F: ValueTree, G: ValueTree, H: ValueTree, I: ValueTree, J: ValueTree> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H, I, J)>
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value, <E as ValueTree>::Value, <F as ValueTree>::Value, <G as ValueTree>::Value, <H as ValueTree>::Value, <I as ValueTree>::Value, <J as ValueTree>::Value);fn current(&self) -> Self::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool
impl<A: ValueTree, B: ValueTree, C: ValueTree, D: ValueTree, E: ValueTree, F: ValueTree, G: ValueTree, H: ValueTree, I: ValueTree, J: ValueTree, K: ValueTree> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H, I, J, K)>
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value, <E as ValueTree>::Value, <F as ValueTree>::Value, <G as ValueTree>::Value, <H as ValueTree>::Value, <I as ValueTree>::Value, <J as ValueTree>::Value, <K as ValueTree>::Value);fn current(&self) -> Self::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool
impl<A: ValueTree, B: ValueTree, C: ValueTree, D: ValueTree, E: ValueTree, F: ValueTree, G: ValueTree, H: ValueTree, I: ValueTree, J: ValueTree, K: ValueTree, L: ValueTree> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H, I, J, K, L)>
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value, <E as ValueTree>::Value, <F as ValueTree>::Value, <G as ValueTree>::Value, <H as ValueTree>::Value, <I as ValueTree>::Value, <J as ValueTree>::Value, <K as ValueTree>::Value, <L as ValueTree>::Value);fn current(&self) -> Self::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool
impl<T: Clone> Clone for TupleValueTree<T>
fn clone(&self) -> Self
impl<T: Copy> Copy for TupleValueTree<T>
impl<T: Debug> Debug for TupleValueTree<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result