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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
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) -> Result<Self, RuntimeError>
fn from_value(value: Value) -> Result<Self, RuntimeError>
Try to convert to the given type, from the given value.
Source§impl<T> MaybeTypeOf for VecTuple<T>where
T: MaybeTypeOf,
impl<T> MaybeTypeOf for VecTuple<T>where
T: MaybeTypeOf,
Source§fn maybe_type_of() -> Result<DocType>
fn maybe_type_of() -> Result<DocType>
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: PartialOrd> PartialOrd for VecTuple<T>
impl<T: PartialOrd> PartialOrd for VecTuple<T>
Source§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)>
Source§impl<T> TypeOf for VecTuple<T>where
T: MaybeTypeOf,
impl<T> TypeOf for VecTuple<T>where
T: MaybeTypeOf,
Source§const STATIC_TYPE_INFO: AnyTypeInfo = _
const STATIC_TYPE_INFO: AnyTypeInfo = _
Access diagnostical type information for the current type. Read more
Source§const PARAMETERS: Hash = Hash::EMPTY
const PARAMETERS: Hash = Hash::EMPTY
Type parameters for the type. Read more
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> Freeze for VecTuple<T>where
T: Freeze,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> UnsafeToValue for Twhere
T: ToValue,
impl<T> UnsafeToValue for Twhere
T: ToValue,
Source§unsafe fn unsafe_to_value(
self,
) -> Result<(Value, <T as UnsafeToValue>::Guard), RuntimeError>
unsafe fn unsafe_to_value( self, ) -> Result<(Value, <T as UnsafeToValue>::Guard), RuntimeError>
Convert into a value. Read more