Trait IntoList
pub trait IntoList {
type Output<T: EmptyList>: List;
// Required method
fn into_list<T>(self) -> Self::Output<T>
where T: EmptyList;
}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");Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
§impl<A, B, C, D, E, F, G, H, I, J, K, L> IntoList for (A, B, C, D, E, F, G, H, I, J, K, L)where
A: 'static,
B: 'static,
C: 'static,
D: 'static,
E: 'static,
F: 'static,
G: 'static,
H: 'static,
I: 'static,
J: 'static,
K: 'static,
L: 'static,
impl<A, B, C, D, E, F, G, H, I, J, K, L> IntoList for (A, B, C, D, E, F, G, H, I, J, K, L)where
A: 'static,
B: 'static,
C: 'static,
D: 'static,
E: 'static,
F: 'static,
G: 'static,
H: 'static,
I: 'static,
J: 'static,
K: 'static,
L: 'static,
§fn into_list<T>(
self,
) -> <(A, B, C, D, E, F, G, H, I, J, K, L) as IntoList>::Output<T>where
T: EmptyList,
fn into_list<T>(
self,
) -> <(A, B, C, D, E, F, G, H, I, J, K, L) as IntoList>::Output<T>where
T: EmptyList,
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
type Output<T: EmptyList> = <<(B, C, D, E, F, G, H, I, J, K, L) as IntoList>::Output<T> as List>::Push<A>
§impl<A, B, C, D, E, F, G, H, I, J, K> IntoList for (A, B, C, D, E, F, G, H, I, J, K)where
A: 'static,
B: 'static,
C: 'static,
D: 'static,
E: 'static,
F: 'static,
G: 'static,
H: 'static,
I: 'static,
J: 'static,
K: 'static,
impl<A, B, C, D, E, F, G, H, I, J, K> IntoList for (A, B, C, D, E, F, G, H, I, J, K)where
A: 'static,
B: 'static,
C: 'static,
D: 'static,
E: 'static,
F: 'static,
G: 'static,
H: 'static,
I: 'static,
J: 'static,
K: 'static,
§fn into_list<T>(
self,
) -> <(A, B, C, D, E, F, G, H, I, J, K) as IntoList>::Output<T>where
T: EmptyList,
fn into_list<T>(
self,
) -> <(A, B, C, D, E, F, G, H, I, J, K) as IntoList>::Output<T>where
T: EmptyList,
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
type Output<T: EmptyList> = <<(B, C, D, E, F, G, H, I, J, K) as IntoList>::Output<T> as List>::Push<A>
§impl<A, B, C, D, E, F, G, H, I, J> IntoList for (A, B, C, D, E, F, G, H, I, J)where
A: 'static,
B: 'static,
C: 'static,
D: 'static,
E: 'static,
F: 'static,
G: 'static,
H: 'static,
I: 'static,
J: 'static,
impl<A, B, C, D, E, F, G, H, I, J> IntoList for (A, B, C, D, E, F, G, H, I, J)where
A: 'static,
B: 'static,
C: 'static,
D: 'static,
E: 'static,
F: 'static,
G: 'static,
H: 'static,
I: 'static,
J: 'static,
§fn into_list<T>(self) -> <(A, B, C, D, E, F, G, H, I, J) as IntoList>::Output<T>where
T: EmptyList,
fn into_list<T>(self) -> <(A, B, C, D, E, F, G, H, I, J) as IntoList>::Output<T>where
T: EmptyList,
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
type Output<T: EmptyList> = <<(B, C, D, E, F, G, H, I, J) as IntoList>::Output<T> as List>::Push<A>
§impl<A, B, C, D, E, F, G, H, I> IntoList for (A, B, C, D, E, F, G, H, I)where
A: 'static,
B: 'static,
C: 'static,
D: 'static,
E: 'static,
F: 'static,
G: 'static,
H: 'static,
I: 'static,
impl<A, B, C, D, E, F, G, H, I> IntoList for (A, B, C, D, E, F, G, H, I)where
A: 'static,
B: 'static,
C: 'static,
D: 'static,
E: 'static,
F: 'static,
G: 'static,
H: 'static,
I: 'static,
§fn into_list<T>(self) -> <(A, B, C, D, E, F, G, H, I) as IntoList>::Output<T>where
T: EmptyList,
fn into_list<T>(self) -> <(A, B, C, D, E, F, G, H, I) as IntoList>::Output<T>where
T: EmptyList,
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.
type Output<T: EmptyList> = <<(B, C, D, E, F, G, H, I) as IntoList>::Output<T> as List>::Push<A>
§impl<A, B, C, D, E, F, G, H> IntoList for (A, B, C, D, E, F, G, H)where
A: 'static,
B: 'static,
C: 'static,
D: 'static,
E: 'static,
F: 'static,
G: 'static,
H: 'static,
impl<A, B, C, D, E, F, G, H> IntoList for (A, B, C, D, E, F, G, H)where
A: 'static,
B: 'static,
C: 'static,
D: 'static,
E: 'static,
F: 'static,
G: 'static,
H: 'static,
§fn into_list<T>(self) -> <(A, B, C, D, E, F, G, H) as IntoList>::Output<T>where
T: EmptyList,
fn into_list<T>(self) -> <(A, B, C, D, E, F, G, H) as IntoList>::Output<T>where
T: EmptyList,
Moves source fields into the requested list family without cloning.
- Complexity: O(n) field moves for n tuple fields.