Trait IntoList
Source pub trait IntoList {
type Output<T: EmptyList>: List;
// Required method
fn into_list<T: EmptyList>(self) -> Self::Output<T>;
}
Expand description
Moves source fields into a type-level List.
§Examples
use cel_runtime::{IntoList, List};
let list = (String::from("first"), 7u8).into_list::<()>();
assert_eq!(list.head(), "first");
The resulting List type using T as the empty list type family.
Moves fields into a List using T as the empty list type family.
- Complexity: O(n) field moves for the native tuple bridges, without allocation.
§Examples
See IntoList.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Constructs the requested family’s empty root.
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
Moves both source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
Moves the singleton source field into the requested list family.