Document performance characteristics of Buffer::new

This commit is contained in:
David Tolnay
2018-08-07 10:03:22 -07:00
parent a8fff0f7f3
commit 25c7e8664e
+2
View File
@@ -20,6 +20,8 @@ pub struct Buffer {
}
impl Buffer {
/// This is a cheap operation; you don't need to worry about reusing buffers
/// for efficiency.
#[inline]
#[cfg_attr(feature = "no-panic", no_panic)]
pub fn new() -> Self {