You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnnode(input:&mutStream) -> Item;/// whitespace tokenfnwst(input:&mutStream) -> Item;let a:Vec<Item> = repeat(0..,(node, wst)).map(|vec:Vec<_>| vec.into_iter().map(|(a, b)| [a, b]).flatten().collect())// make it possible without this line!!.parse("whatever").unwrap();
Describe the solution you'd like
#[cfg(feature = "alloc")]impl<T>Accumulate<(T,T)>forVec<T>{#[inline(always)]fninitial(capacity:Option<usize>) -> Self{match capacity {Some(capacity) => Vec::with_capacity(clamp_capacity::<T>(capacity)),None => Vec::new(),}}#[inline(always)]fnaccumulate(&mutself,acc:(T,T)){self.push(acc.0);self.push(acc.1);}}// the same for (T, T, T), (T, T, T, T) and so on until what? 12 items?
Please complete the following tasks
winnow version
0.6.2
Describe your use case
Here, let me show you:
Describe the solution you'd like
Alternatives, if applicable
maybe you could instead use
impl Into<[T; N]>
:https://doc.rust-lang.org/std/primitive.tuple.html#impl-From%3C(T,)%3E-for-%5BT;+1%5D
Additional Context
No response
The text was updated successfully, but these errors were encountered: