Conversation
| /// array. | ||
| /// | ||
| /// The length of the provided array must be `N`. | ||
| pub fn from_array_same_cap(src: [T; N]) -> Self { |
There was a problem hiding this comment.
N can be constructed in the macro, so this isn't needed.
|
I think instead of vec![1, 2, 3] // Vec::<_, 3>::from([1, 2, 3])
vec![1; 3] // Vec::<_, 3>::from([1; 3])
vec![1, 2, 3; 6] // Vec::<_, 6>::from([1, 2, 3])
vec![1; 3; 6] // Vec::<_, 6>::from([1; 3])would work. |
|
That's ambiguous though in the case of |
|
Good point. In that case, maybe Then again, I think let vec: Vec<_, 6> = vec![1; 3];should work when using |
|
If we don't go with the |
Add
vecandvec_with_capmacrosResolves #344