Enum ValueTuple
pub enum ValueTuple {
One(Value),
Two(Value, Value),
Three(Value, Value, Value),
Many(Vec<Value>),
}Variants§
Implementations§
§impl ValueTuple
impl ValueTuple
pub fn arity(&self) -> usize
pub fn iter(&self) -> ValueTupleIter<'_> ⓘ
Trait Implementations§
§impl Clone for ValueTuple
impl Clone for ValueTuple
§fn clone(&self) -> ValueTuple
fn clone(&self) -> ValueTuple
Returns a duplicate 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 more§impl Debug for ValueTuple
impl Debug for ValueTuple
§impl<T0, T1, T2, T3> From<(T0, T1, T2, T3)> for ValueTuple
impl<T0, T1, T2, T3> From<(T0, T1, T2, T3)> for ValueTuple
§fn from(value: (T0, T1, T2, T3)) -> Self
fn from(value: (T0, T1, T2, T3)) -> Self
Converts to this type from the input type.
§impl<T0, T1, T2, T3, T4> From<(T0, T1, T2, T3, T4)> for ValueTuple
impl<T0, T1, T2, T3, T4> From<(T0, T1, T2, T3, T4)> for ValueTuple
§fn from(value: (T0, T1, T2, T3, T4)) -> Self
fn from(value: (T0, T1, T2, T3, T4)) -> Self
Converts to this type from the input type.
§impl<T0, T1, T2, T3, T4, T5> From<(T0, T1, T2, T3, T4, T5)> for ValueTuple
impl<T0, T1, T2, T3, T4, T5> From<(T0, T1, T2, T3, T4, T5)> for ValueTuple
§fn from(value: (T0, T1, T2, T3, T4, T5)) -> Self
fn from(value: (T0, T1, T2, T3, T4, T5)) -> Self
Converts to this type from the input type.
§impl<T0, T1, T2, T3, T4, T5, T6> From<(T0, T1, T2, T3, T4, T5, T6)> for ValueTuple
impl<T0, T1, T2, T3, T4, T5, T6> From<(T0, T1, T2, T3, T4, T5, T6)> for ValueTuple
§fn from(value: (T0, T1, T2, T3, T4, T5, T6)) -> Self
fn from(value: (T0, T1, T2, T3, T4, T5, T6)) -> Self
Converts to this type from the input type.
§impl<T0, T1, T2, T3, T4, T5, T6, T7> From<(T0, T1, T2, T3, T4, T5, T6, T7)> for ValueTuple
impl<T0, T1, T2, T3, T4, T5, T6, T7> From<(T0, T1, T2, T3, T4, T5, T6, T7)> for ValueTuple
§fn from(value: (T0, T1, T2, T3, T4, T5, T6, T7)) -> Self
fn from(value: (T0, T1, T2, T3, T4, T5, T6, T7)) -> Self
Converts to this type from the input type.
§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for ValueTuple
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for ValueTuple
§fn from(value: (T0, T1, T2, T3, T4, T5, T6, T7, T8)) -> Self
fn from(value: (T0, T1, T2, T3, T4, T5, T6, T7, T8)) -> Self
Converts to this type from the input type.
§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for ValueTuple
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for ValueTuple
§fn from(value: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)) -> Self
fn from(value: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)) -> Self
Converts to this type from the input type.
§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for ValueTuple
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for ValueTuple
§fn from(value: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)) -> Self
fn from(value: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)) -> Self
Converts to this type from the input type.
§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for ValueTuple
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for ValueTuple
§fn from(value: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)) -> Self
fn from(value: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)) -> Self
Converts to this type from the input type.
§impl<U, V, W> From<(U, V, W)> for ValueTuple
impl<U, V, W> From<(U, V, W)> for ValueTuple
§impl<V, W> From<(V, W)> for ValueTuple
impl<V, W> From<(V, W)> for ValueTuple
§impl<V> From<V> for ValueTuple
impl<V> From<V> for ValueTuple
§impl IntoIterator for ValueTuple
impl IntoIterator for ValueTuple
§impl PartialEq for ValueTuple
impl PartialEq for ValueTuple
impl StructuralPartialEq for ValueTuple
Auto Trait Implementations§
impl Freeze for ValueTuple
impl RefUnwindSafe for ValueTuple
impl Send for ValueTuple
impl Sync for ValueTuple
impl Unpin for ValueTuple
impl UnwindSafe for ValueTuple
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