Document which functions require std (#591)

This commit is contained in:
0xc0001a2040
2023-01-31 11:42:28 +01:00
committed by GitHub
parent c93a94b974
commit f15bba3375
5 changed files with 14 additions and 1 deletions
+1
View File
@@ -1239,6 +1239,7 @@ pub unsafe trait BufMut {
/// assert_eq!(*buf, b"hello world"[..]);
/// ```
#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
fn writer(self) -> Writer<Self>
where
Self: Sized,