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
{{ message }}
Repository navigation
Tracking Issue for Vec::from_elem and Vec::from_elem_in #164215
This is a tracking issue for Vec::from_elem and Vec::from_elem_in.
These two methods allow creating a Vec that contains a specific element n times. The element must implement Clone for this. Internally, the methods can make use of specialization to make this operation more efficient than Vec::new followed by Vec::resize, for example when the element is zero, which will result in a single call to calloc instead of malloc + memset.
Activity