@@ -4,7 +4,7 @@ use core::marker::PhantomData;
44use crate :: traits:: StaticFormat ;
55
66/**
7- The `Chars` type, a.k.a. `ζ`, is used to represent _type-level_ list of
7+ The `Chars` type is used to represent _type-level_ list of
88 `Chars`s, which are equivalent to type-level strings.
99
1010 `Chars` is a specialized version of [`Cons`](crate::types::Cons), with the
@@ -13,11 +13,6 @@ use crate::traits::StaticFormat;
1313 expected to be either the next `Chars`, or [`Nil`](crate::types::Nil) to
1414 represent the end of the string.
1515
16- Instead of reusing `Cons`, we combine the use of `Cons` within `Chars` so
17- that its representation is more compact when shown in compiler error messages.
18- Similar to `Cons`, `Chars` is also shown as `ζ` to further improve its
19- readability.
20-
2116 We represent type-level strings as list of `Chars`s, because it is currently
2217 not possible to use types like `String` or `&str` as const-generic parameters.
2318 On the other hand, a single `Chars` can be used as a const-generic parameter,
@@ -40,17 +35,9 @@ use crate::traits::StaticFormat;
4035 ```rust,ignore
4136 type Hello = Chars<'h', Chars<'e', Chars<'l', Chars<'l', Chars<'o', Nil>>>>>;
4237 ```
43-
44- which would be shown with the shortened representation as:
45-
46- ```rust,ignore
47- type Hello = ζ<'h', ζ<'e', ζ<'l', ζ<'l', ζ<'o', ε>>>>>;
48- ```
4938*/
5039#[ derive( Eq , PartialEq , Clone , Copy , Default ) ]
51- pub struct ζ < const CHAR : char , Tail > ( pub PhantomData < Tail > ) ;
52-
53- pub use ζ as Chars ;
40+ pub struct Chars < const CHAR : char , Tail > ( pub PhantomData < Tail > ) ;
5441
5542impl < const CHAR : char , Tail > Display for Chars < CHAR , Tail >
5643where
0 commit comments