pub trait PushStrUnchecked {
// Required method
unsafe fn push_str_unchecked(&mut self, string: &str);
}
Expand description
A trait for push_str
without the capacity check.
Required Methods§
Sourceunsafe fn push_str_unchecked(&mut self, string: &str)
unsafe fn push_str_unchecked(&mut self, string: &str)
Appends a given string slice onto the end of this collection without the capacity check.
§Safety
The capacity of the collection must be sufficient for the appended string.