Trait IntoTupleList
pub trait IntoTupleList {
type Output: List;
// Required method
fn into_tuple_list(self) -> Self::Output;
}Expand description
Converts tuples into a List representation where () is empty and (H, T) is a cons cell.
§Examples
See the module tutorial.
Required Associated Types§
Required Methods§
fn into_tuple_list(self) -> Self::Output
fn into_tuple_list(self) -> Self::Output
Moves source fields into a List where (H, T) models a cons cell.
- Complexity: O(n) field moves for n source fields, without allocation.
§Examples
See IntoTupleList.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".