pub trait Tuplable: Valuable {
// Required method
fn definition(&self) -> TupleDef;
}Expand description
A tuple-like Valuable sub-type.
Implemented by Valuable types that have a tuple-like shape. Fields are
always unnamed. Values that implement Tuplable must return
Value::Tuplable from their Valuable::as_value implementation.
It is uncommon for users to implement this type as the crate provides
implementations of Tuplable for Rust tuples.
§Inspecting
Inspecting fields contained by a Tuplable instance is done by visiting the
tuple. When visiting a Tuple, the visit_unnamed_fields() method is
called. When the tuple is statically defined, visit_unnamed_fields() is
called once with the values of all the fields. A dynamic tuple
implementation may call visit_unnamed_fields() multiple times.
Required Methods§
Sourcefn definition(&self) -> TupleDef
fn definition(&self) -> TupleDef
Trait Implementations§
Implementations on Foreign Types§
Source§impl<T0, T1, T2> Tuplable for (T0, T1, T2)
impl<T0, T1, T2> Tuplable for (T0, T1, T2)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3> Tuplable for (T0, T1, T2, T3)
impl<T0, T1, T2, T3> Tuplable for (T0, T1, T2, T3)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3, T4> Tuplable for (T0, T1, T2, T3, T4)
impl<T0, T1, T2, T3, T4> Tuplable for (T0, T1, T2, T3, T4)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3, T4, T5> Tuplable for (T0, T1, T2, T3, T4, T5)
impl<T0, T1, T2, T3, T4, T5> Tuplable for (T0, T1, T2, T3, T4, T5)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3, T4, T5, T6> Tuplable for (T0, T1, T2, T3, T4, T5, T6)
impl<T0, T1, T2, T3, T4, T5, T6> Tuplable for (T0, T1, T2, T3, T4, T5, T6)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7)
impl<T0, T1, T2, T3, T4, T5, T6, T7> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
fn definition(&self) -> TupleDef
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Tuplable for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
fn definition(&self) -> TupleDef
Source§impl<T> Tuplable for Box<T>
Available on crate feature alloc only.
impl<T> Tuplable for Box<T>
Available on crate feature
alloc only.fn definition(&self) -> TupleDef
Source§impl<T> Tuplable for Rc<T>
Available on crate feature alloc only.
impl<T> Tuplable for Rc<T>
Available on crate feature
alloc only.fn definition(&self) -> TupleDef
Source§impl<T> Tuplable for Arc<T>
Available on non-valuable_no_atomic_cas and crate feature alloc only.
impl<T> Tuplable for Arc<T>
Available on non-
valuable_no_atomic_cas and crate feature alloc only.