Enum ValueTuple

Source
#[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.
§

One(Value)

§

Two(Value, Value)

§

Three(Value, Value, Value)

§

Many(Vec<Value>)

Implementations§

Source§

impl ValueTuple

Source

pub fn arity(&self) -> usize

Trait Implementations§

Source§

impl Clone for ValueTuple

Source§

fn clone(&self) -> ValueTuple

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ValueTuple

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T0, T1, T2, T3> From<(T0, T1, T2, T3)> for ValueTuple
where T0: Into<Value>, T1: Into<Value>, T2: Into<Value>, T3: Into<Value>,

Source§

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
where T0: Into<Value>, T1: Into<Value>, T2: Into<Value>, T3: Into<Value>, T4: Into<Value>,

Source§

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
where T0: Into<Value>, T1: Into<Value>, T2: Into<Value>, T3: Into<Value>, T4: Into<Value>, T5: Into<Value>,

Source§

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
where T0: Into<Value>, T1: Into<Value>, T2: Into<Value>, T3: Into<Value>, T4: Into<Value>, T5: Into<Value>, T6: Into<Value>,

Source§

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
where T0: Into<Value>, T1: Into<Value>, T2: Into<Value>, T3: Into<Value>, T4: Into<Value>, T5: Into<Value>, T6: Into<Value>, T7: Into<Value>,

Source§

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
where T0: Into<Value>, T1: Into<Value>, T2: Into<Value>, T3: Into<Value>, T4: Into<Value>, T5: Into<Value>, T6: Into<Value>, T7: Into<Value>, T8: Into<Value>,

Source§

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
where T0: Into<Value>, T1: Into<Value>, T2: Into<Value>, T3: Into<Value>, T4: Into<Value>, T5: Into<Value>, T6: Into<Value>, T7: Into<Value>, T8: Into<Value>, T9: Into<Value>,

Source§

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
where T0: Into<Value>, T1: Into<Value>, T2: Into<Value>, T3: Into<Value>, T4: Into<Value>, T5: Into<Value>, T6: Into<Value>, T7: Into<Value>, T8: Into<Value>, T9: Into<Value>, T10: Into<Value>,

Source§

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
where T0: Into<Value>, T1: Into<Value>, T2: Into<Value>, T3: Into<Value>, T4: Into<Value>, T5: Into<Value>, T6: Into<Value>, T7: Into<Value>, T8: Into<Value>, T9: Into<Value>, T10: Into<Value>, T11: Into<Value>,

Source§

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
where U: Into<Value>, V: Into<Value>, W: Into<Value>,

Source§

fn from(value: (U, V, W)) -> Self

Converts to this type from the input type.
Source§

impl<V, W> From<(V, W)> for ValueTuple
where V: Into<Value>, W: Into<Value>,

Source§

fn from(value: (V, W)) -> Self

Converts to this type from the input type.
Source§

impl<V> From<V> for ValueTuple
where V: Into<Value>,

Source§

fn from(value: V) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for ValueTuple

Source§

type Item = Value

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<<ValueTuple as IntoIterator>::Item>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl PartialEq for ValueTuple

Source§

fn eq(&self, other: &ValueTuple) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ValueTuple

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoValueTuple for T
where T: Into<ValueTuple>,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.