Skip to main content

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 (const: unstable) ยท 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 Eq for ValueTuple

Available on crate feature hashable-value only.
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

Available on crate feature hashable-value only.
Sourceยง

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

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

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

Equality operator ==. Read more
1.0.0 (const: unstable) ยท Sourceยง

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

Inequality operator !=. Read more
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.