pub struct VecTuple<T>(pub T);
Expand description
A helper type to deserialize arrays with different interior types.
This implements FromValue, allowing it to be used as a return value from a virtual machine.
Tuple Fields§
§0: T
Implementations§
Trait Implementations§
source§impl FromValue for VecTuple<()>
impl FromValue for VecTuple<()>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A> FromValue for VecTuple<(A,)>where
A: FromValue,
impl<A> FromValue for VecTuple<(A,)>where
A: FromValue,
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B> FromValue for VecTuple<(A, B)>
impl<A, B> FromValue for VecTuple<(A, B)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C> FromValue for VecTuple<(A, B, C)>
impl<A, B, C> FromValue for VecTuple<(A, B, C)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D> FromValue for VecTuple<(A, B, C, D)>
impl<A, B, C, D> FromValue for VecTuple<(A, B, C, D)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D, E> FromValue for VecTuple<(A, B, C, D, E)>
impl<A, B, C, D, E> FromValue for VecTuple<(A, B, C, D, E)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D, E, F> FromValue for VecTuple<(A, B, C, D, E, F)>
impl<A, B, C, D, E, F> FromValue for VecTuple<(A, B, C, D, E, F)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D, E, F, G> FromValue for VecTuple<(A, B, C, D, E, F, G)>
impl<A, B, C, D, E, F, G> FromValue for VecTuple<(A, B, C, D, E, F, G)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D, E, F, G, H> FromValue for VecTuple<(A, B, C, D, E, F, G, H)>
impl<A, B, C, D, E, F, G, H> FromValue for VecTuple<(A, B, C, D, E, F, G, H)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D, E, F, G, H, I> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I)>
impl<A, B, C, D, E, F, G, H, I> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D, E, F, G, H, I, J> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J)>
impl<A, B, C, D, E, F, G, H, I, J> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D, E, F, G, H, I, J, K> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K)>
impl<A, B, C, D, E, F, G, H, I, J, K> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D, E, F, G, H, I, J, K, L> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L)>
impl<A, B, C, D, E, F, G, H, I, J, K, L> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M)>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)>
source§fn from_value(value: Value) -> VmResult<Self>
fn from_value(value: Value) -> VmResult<Self>
Try to convert to the given type, from the given value.
source§impl<T> MaybeTypeOf for VecTuple<T>
impl<T> MaybeTypeOf for VecTuple<T>
source§fn maybe_type_of() -> Option<FullTypeOf>
fn maybe_type_of() -> Option<FullTypeOf>
Type information for the given type.
source§impl<T: Ord> Ord for VecTuple<T>
impl<T: Ord> Ord for VecTuple<T>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq for VecTuple<T>
impl<T: PartialEq> PartialEq for VecTuple<T>
source§impl<T: PartialOrd> PartialOrd for VecTuple<T>
impl<T: PartialOrd> PartialOrd for VecTuple<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<A, B, C, D> ToValue for VecTuple<(A, B, C, D)>
impl<A, B, C, D> ToValue for VecTuple<(A, B, C, D)>
source§impl<A, B, C, D, E> ToValue for VecTuple<(A, B, C, D, E)>
impl<A, B, C, D, E> ToValue for VecTuple<(A, B, C, D, E)>
source§impl<A, B, C, D, E, F> ToValue for VecTuple<(A, B, C, D, E, F)>
impl<A, B, C, D, E, F> ToValue for VecTuple<(A, B, C, D, E, F)>
source§impl<A, B, C, D, E, F, G> ToValue for VecTuple<(A, B, C, D, E, F, G)>
impl<A, B, C, D, E, F, G> ToValue for VecTuple<(A, B, C, D, E, F, G)>
source§impl<A, B, C, D, E, F, G, H> ToValue for VecTuple<(A, B, C, D, E, F, G, H)>
impl<A, B, C, D, E, F, G, H> ToValue for VecTuple<(A, B, C, D, E, F, G, H)>
source§impl<A, B, C, D, E, F, G, H, I> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I)>
impl<A, B, C, D, E, F, G, H, I> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I)>
source§impl<A, B, C, D, E, F, G, H, I, J> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J)>
impl<A, B, C, D, E, F, G, H, I, J> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J)>
source§impl<A, B, C, D, E, F, G, H, I, J, K> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K)>
impl<A, B, C, D, E, F, G, H, I, J, K> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K)>
source§impl<A, B, C, D, E, F, G, H, I, J, K, L> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L)>
impl<A, B, C, D, E, F, G, H, I, J, K, L> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L)>
source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M)>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M)>
source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)>
source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)>
source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)>
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> ToValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)>
impl<T: Copy> Copy for VecTuple<T>
impl<T: Eq> Eq for VecTuple<T>
impl<T> StructuralPartialEq for VecTuple<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for VecTuple<T>where
T: RefUnwindSafe,
impl<T> Send for VecTuple<T>where
T: Send,
impl<T> Sync for VecTuple<T>where
T: Sync,
impl<T> Unpin for VecTuple<T>where
T: Unpin,
impl<T> UnwindSafe for VecTuple<T>where
T: UnwindSafe,
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.