Generics help with that for sure. I'm just not sure what the type for the no_std case would be. Also, it would be nice if there were an official trait for "Vec-like" types.
#Rustlang I wonder if it's possible to implement APIs that take &mut Vec params on std but downgrade gracefully to something non-dynamically allocated but resizeable-within static bounds on no_std.
-
-
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.