#[non_exhaustive]pub enum ValueTuple {
One(Value),
Two(Value, Value),
Three(Value, Value, Value),
Many(Vec<Value>),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for ValueTuple
impl Clone for ValueTuple
Source§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 moreSource§impl Debug for ValueTuple
impl Debug for ValueTuple
Source§impl<T0, T1, T2, T3> From<(T0, T1, T2, T3)> for ValueTuple
impl<T0, T1, T2, T3> From<(T0, T1, T2, T3)> for ValueTuple
Source§fn from(value: (T0, T1, T2, T3)) -> Self
fn from(value: (T0, T1, T2, T3)) -> Self
Converts to this type from the input type.
Source§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
Source§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.
Source§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
Source§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.
Source§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
Source§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.
Source§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
Source§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.
Source§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
Source§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.
Source§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
Source§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.
Source§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
Source§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.
Source§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
Source§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.
Source§impl<U, V, W> From<(U, V, W)> for ValueTuple
impl<U, V, W> From<(U, V, W)> for ValueTuple
Source§impl<V, W> From<(V, W)> for ValueTuple
impl<V, W> From<(V, W)> for ValueTuple
Source§impl<V> From<V> for ValueTuple
impl<V> From<V> for ValueTuple
Source§impl IntoIterator for ValueTuple
impl IntoIterator for ValueTuple
Source§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