ValueTuple

Enum ValueTuple 

Source
pub enum ValueTuple {
    One(Value),
    Two(Value, Value),
    Three(Value, Value, Value),
    Many(Vec<Value>),
}

Variantsยง

Implementationsยง

Sourceยง

impl ValueTuple

Source

pub fn arity(&self) -> usize

Source

pub fn iter(&self) -> ValueTupleIter<'_> โ“˜

Trait Implementationsยง

Sourceยง

impl Clone for ValueTuple

Sourceยง

fn clone(&self) -> ValueTuple

Returns a duplicate of the value. Read more
1.0.0ยง

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 Hash for ValueTuple

Sourceยง

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0ยง

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
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ยง

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 Eq for ValueTuple

Sourceยง

impl StructuralPartialEq for ValueTuple

Auto Trait Implementationsยง

Blanket Implementationsยง

ยง

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

ยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
ยง

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

ยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
ยง

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

ยง

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

Mutably borrows from an owned value. Read more
ยง

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

ยง

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
ยง

impl<T> From<T> for T

ยง

fn from(t: T) -> T

Returns the argument unchanged.

ยง

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

ยง

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>,

ยง

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

ยง

type Owned = T

The resulting type after obtaining ownership.
ยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
ยง

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

Uses borrowed data to replace owned data, usually by cloning. Read more
ยง

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

ยง

type Error = Infallible

The type returned in the event of a conversion error.
ยง

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

Performs the conversion.
ยง

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

ยง

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

The type returned in the event of a conversion error.
ยง

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

Performs the conversion.