pub struct TupleValueTree<T> { /* private fields */ }
Expand description
Common ValueTree
implementation for all tuple strategies.
Implementations§
Source§impl<T> TupleValueTree<T>
impl<T> TupleValueTree<T>
Sourcepub fn new(inner: T) -> TupleValueTree<T>
pub fn new(inner: T) -> TupleValueTree<T>
Create a new TupleValueTree
wrapping inner
.
It only makes sense for inner
to be a tuple of an arity for which the
type implements ValueTree
.
Trait Implementations§
Source§impl<T> Clone for TupleValueTree<T>where
T: Clone,
impl<T> Clone for TupleValueTree<T>where
T: Clone,
Source§fn clone(&self) -> TupleValueTree<T>
fn clone(&self) -> TupleValueTree<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for TupleValueTree<T>where
T: Debug,
impl<T> Debug for TupleValueTree<T>where
T: Debug,
Source§impl<A> ValueTree for TupleValueTree<(A,)>where
A: ValueTree,
impl<A> ValueTree for TupleValueTree<(A,)>where
A: ValueTree,
Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
Source§impl<A, B> ValueTree for TupleValueTree<(A, B)>
impl<A, B> ValueTree for TupleValueTree<(A, B)>
Source§type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value)
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value)
The type of the value produced by this
ValueTree
.Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
Source§impl<A, B, C> ValueTree for TupleValueTree<(A, B, C)>
impl<A, B, C> ValueTree for TupleValueTree<(A, B, C)>
Source§type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value)
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value)
The type of the value produced by this
ValueTree
.Source§fn current(&self) -> <TupleValueTree<(A, B, C)> as ValueTree>::Value
fn current(&self) -> <TupleValueTree<(A, B, C)> as ValueTree>::Value
Returns the current value.
Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
Source§impl<A, B, C, D> ValueTree for TupleValueTree<(A, B, C, D)>
impl<A, B, C, D> ValueTree for TupleValueTree<(A, B, C, D)>
Source§type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value)
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value)
The type of the value produced by this
ValueTree
.Source§fn current(&self) -> <TupleValueTree<(A, B, C, D)> as ValueTree>::Value
fn current(&self) -> <TupleValueTree<(A, B, C, D)> as ValueTree>::Value
Returns the current value.
Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
Source§impl<A, B, C, D, E> ValueTree for TupleValueTree<(A, B, C, D, E)>
impl<A, B, C, D, E> ValueTree for TupleValueTree<(A, B, C, D, E)>
Source§type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value, <E as ValueTree>::Value)
type Value = (<A as ValueTree>::Value, <B as ValueTree>::Value, <C as ValueTree>::Value, <D as ValueTree>::Value, <E as ValueTree>::Value)
The type of the value produced by this
ValueTree
.Source§fn current(&self) -> <TupleValueTree<(A, B, C, D, E)> as ValueTree>::Value
fn current(&self) -> <TupleValueTree<(A, B, C, D, E)> as ValueTree>::Value
Returns the current value.
Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
Source§impl<A, B, C, D, E, F> ValueTree for TupleValueTree<(A, B, C, D, E, F)>
impl<A, B, C, D, E, F> ValueTree for TupleValueTree<(A, B, C, D, E, F)>
Source§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)
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)
The type of the value produced by this
ValueTree
.Source§fn current(&self) -> <TupleValueTree<(A, B, C, D, E, F)> as ValueTree>::Value
fn current(&self) -> <TupleValueTree<(A, B, C, D, E, F)> as ValueTree>::Value
Returns the current value.
Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
Source§impl<A, B, C, D, E, F, G> ValueTree for TupleValueTree<(A, B, C, D, E, F, G)>
impl<A, B, C, D, E, F, G> ValueTree for TupleValueTree<(A, B, C, D, E, F, G)>
Source§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)
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)
The type of the value produced by this
ValueTree
.Source§fn current(&self) -> <TupleValueTree<(A, B, C, D, E, F, G)> as ValueTree>::Value
fn current(&self) -> <TupleValueTree<(A, B, C, D, E, F, G)> as ValueTree>::Value
Returns the current value.
Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
Source§impl<A, B, C, D, E, F, G, H> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H)>
impl<A, B, C, D, E, F, G, H> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H)>
Source§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)
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)
The type of the value produced by this
ValueTree
.Source§fn current(
&self,
) -> <TupleValueTree<(A, B, C, D, E, F, G, H)> as ValueTree>::Value
fn current( &self, ) -> <TupleValueTree<(A, B, C, D, E, F, G, H)> as ValueTree>::Value
Returns the current value.
Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
Source§impl<A, B, C, D, E, F, G, H, I> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H, I)>
impl<A, B, C, D, E, F, G, H, I> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H, I)>
Source§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)
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)
The type of the value produced by this
ValueTree
.Source§fn current(
&self,
) -> <TupleValueTree<(A, B, C, D, E, F, G, H, I)> as ValueTree>::Value
fn current( &self, ) -> <TupleValueTree<(A, B, C, D, E, F, G, H, I)> as ValueTree>::Value
Returns the current value.
Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
Source§impl<A, B, C, D, E, F, G, H, I, J> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H, I, J)>
impl<A, B, C, D, E, F, G, H, I, J> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H, I, J)>
Source§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)
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)
The type of the value produced by this
ValueTree
.Source§fn current(
&self,
) -> <TupleValueTree<(A, B, C, D, E, F, G, H, I, J)> as ValueTree>::Value
fn current( &self, ) -> <TupleValueTree<(A, B, C, D, E, F, G, H, I, J)> as ValueTree>::Value
Returns the current value.
Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
Source§impl<A, B, C, D, E, F, G, H, I, J, K> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H, I, J, K)>
impl<A, B, C, D, E, F, G, H, I, J, K> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H, I, J, K)>
Source§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)
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)
The type of the value produced by this
ValueTree
.Source§fn current(
&self,
) -> <TupleValueTree<(A, B, C, D, E, F, G, H, I, J, K)> as ValueTree>::Value
fn current( &self, ) -> <TupleValueTree<(A, B, C, D, E, F, G, H, I, J, K)> as ValueTree>::Value
Returns the current value.
Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H, I, J, K, L)>
impl<A, B, C, D, E, F, G, H, I, J, K, L> ValueTree for TupleValueTree<(A, B, C, D, E, F, G, H, I, J, K, L)>
Source§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)
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)
The type of the value produced by this
ValueTree
.Source§fn current(
&self,
) -> <TupleValueTree<(A, B, C, D, E, F, G, H, I, J, K, L)> as ValueTree>::Value
fn current( &self, ) -> <TupleValueTree<(A, B, C, D, E, F, G, H, I, J, K, L)> as ValueTree>::Value
Returns the current value.
Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
impl<T> Copy for TupleValueTree<T>where
T: Copy,
Auto Trait Implementations§
impl<T> Freeze for TupleValueTree<T>where
T: Freeze,
impl<T> RefUnwindSafe for TupleValueTree<T>where
T: RefUnwindSafe,
impl<T> Send for TupleValueTree<T>where
T: Send,
impl<T> Sync for TupleValueTree<T>where
T: Sync,
impl<T> Unpin for TupleValueTree<T>where
T: Unpin,
impl<T> UnwindSafe for TupleValueTree<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more