Repeat?
-
-
-
Close! But it's to set bytes in an existing slice, not create a new vec. https://doc.rust-lang.org/std/primitive.slice.html#method.repeat …
- 1 more reply
New conversation -
-
-
There once was talk about it in an RFC. It was taken outhttps://github.com/rust-lang/rfcs/pull/1419#issuecomment-175335284 …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Looks like there are some concerns about implementing it for all types, but still having most cases lower to a `memset`: https://github.com/rust-lang/rfcs/issues/2067 … Maybe LLVM has gotten smart enough to do that by itself now in all those cases.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
You can do clear+resize on a Vec
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.