pub trait PushUnchecked<T> {
// Required method
unsafe fn push_unchecked(&mut self, value: T);
}
Expand description
A trait for push
without the capacity check.
Required Methods§
Sourceunsafe fn push_unchecked(&mut self, value: T)
unsafe fn push_unchecked(&mut self, value: T)
Appends an element to the back of a collection without the capacity check.
§Safety
The capacity of the collection must be sufficient for the new item.